views:

278

answers:

3

I have Apache Solr 6.x-1.0-rc3 module installed in my site and it works fine. I wanted to know how are the Apache Solr search results sequenced. I have tried a few things and have concluded that it's not alphabetical or according to the recently updated node.

How are the search results sequenced? I mean in what order or logic.

A: 

Yeah, Solr results are sorted by relevance score by default. The fields within a single result should be in the same order in which they were committed (at least within multi-valued fields...should be true for all fields, though), so you should be able to preserve some field sorting that you might do in the processing script. If you just show all results, I think the results are ordered by the order they were added to the index.

jmans
Hey Hi all and thank you for ur answers. Appreciated!!!I did some studying on as to how can we organise search results. Here is what we can do. We can enable block called Apache Solr Core: Sorting for Apache solr which will give you different sorting options. Now it has different options like Sort by1) Relevance 2)Type 3) Author 4) title and 5) Date.I wanted to know what do all these options meanPlease Help!!!Thanks in advance.
wannabcoder
A: 

The Solr Wiki page (http://wiki.apache.org/solr/CommonQueryParameters) says the default sort order is score desc.

Michael Rush
+2  A: 

Basically, it's scored based on the strength of the match with a few boosting factors added. There's a great breakdown on the algorithm here: http://www.supermind.org/blog/378/lucene-scoring-for-dummies

Don Albrecht