lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael D. Curtin" <m...@curtin.com>
Subject Re: Custom Sorting
Date Fri, 17 Feb 2006 18:30:52 GMT
SOME ONE wrote:

> Hi,
> 
> I am using MultiFieldQueryParser (Lucene 1.9) to
> search title and body fields in the documents. The
> requirement is that documents with title match should
> be returned before the documents with body match.
> Using the default scoring, title matches do come
> before the body matches. But, I also need the
> documents with title matches sorted by date, and
> documents with body matches sorted by date. i.e there
> will be two groups of docs in the results, one with
> title match and the other with just body match, the
> first group of docs should come before the second
> group, and each group should be sorted by date.

Would it work to run 2 searches, one with only the title criteria and then 
another with only the body criteria?

--MDC

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message