--- On Tue, 6/14/11, Jason, Kim <hialo...@gmail.com> wrote:

> From: Jason, Kim <hialo...@gmail.com>
> Subject: Re: disable sort by score
> To: solr-user@lucene.apache.org
> Date: Tuesday, June 14, 2011, 6:57 AM
> Thanks to reply, Erick!
> 
> Actually, I need sort by score.
> I was just curious that seach result without sorting is
> possible.
> Then I found
> http://lucene.472066.n3.nabble.com/MaxRows-and-disabling-sort-td2260650.html
> In above context, Chris Hostetter-3 wrote
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 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) 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> I tried to check perfomance using _docid_ asc.
> But _docid_ didn't work in distributed search.
> So I made inquiries to know that another method is.

In lucene it is possible with Collector.

"...Collector decouples the score from the collected doc: the score computation 
is skipped entirely if it's not needed. Collectors that do need the score 
should implement the..." [1]

[1]http://lucene.apache.org/java/3_0_2/api/core/org/apache/lucene/search/Collector.html

But i am not sure how to plug it to solr. There has been some discussion about 
it. 

http://search-lucene.com/?q=custom+collector&fc_project=Solr&fc_type=mail+_hash_+user

Reply via email to