lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Salman Akram <salman.ak...@northbaysolutions.net>
Subject Re: MaxRows and disabling sort
Date Sat, 15 Jan 2011 13:07:44 GMT
It still returns me (total) 'numFound' that means its scanning all records.

So it seems except timeAllowed there is no way to tell SOLR to stop
searching for all records?

Thanks!

On Sat, Jan 15, 2011 at 7:03 AM, Chris Hostetter
<hossman_lucene@fucit.org>wrote:

>
> : 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
>



-- 
Regards,

Salman Akram

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message