lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: MaxRows and disabling sort
Date Sat, 15 Jan 2011 02:03:18 GMT

: Also I guess default sorting is on Scoring and sorting can only be done once
: it has the scores of all matches so then limiting it to the max rows becomes
: useless. So if there a way to disable sorting? e.g. it returns the rows as
: it finds without any order?

http://wiki.apache.org/solr/CommonQueryParameters#sort
"You can sort by index id using sort=_docid_ asc or sort=_docid_ desc"

if you specify _docid_ asc then solr should return as soon as it finds the 
first N matching results w/o scoring all docs (because no score will be 
computed)

if you use any complex features however (faceting or what not) then it 
will still most likely need to scan all docs.


-Hoss

Mime
View raw message