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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]