The apache solr searchengine delivers also a score relevance value of the search results. This score can also be shown in the search results.

      // All the rest is a node.
      else {
        $node = _solr_document_to_node($result);
        $node->score = $result['score'];
        $node->snippets = $result['snippets'];
        $node->snippet = $result['snippet'];
        $node->build_mode = variable_get('nd_search_apachesolr_build_mode', NODE_BUILD_SEARCH_RESULT);
        $output .= node_view($node);
      }

Comments

xtfer’s picture

I have no problems committing this, just want to know whether there are any other variables we should include?