Java Mailing List Archive

http://www.java2.5341.com/

Home » java-user.lucene »

What does Sort.RELEVANCE do?

Teruhiko Kurosaka

2008-11-06

Replies: Find Java Web Hosting

Author LoginPost Reply
I can specify Sort.RELEVANCE to Searcher.search as in:

hits = searcher.search(q, Sort.RELEVANCE); // Using deprecated method to
make it short

What is the real effect of specifying the Sort argument like this?

Does Sort.RELEVANCE sorts the hits in order of the score
shown in Sect. 3.3 "Understanding Lucene scoring"
of Lucene In Action? If I use the search method without
a sort argument, is it equivalent of specifying
Sort.INDEXORDER?

----
T. "Kuro" Kurosaka, Basis Technology
San Francisco, California, U.S.A.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@(protected)
For additional commands, e-mail: java-user-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.