lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sairaj Sunil" <sairaj.su...@gmail.com>
Subject Simple QueryParser question
Date Fri, 02 Feb 2007 04:46:59 GMT
Hi,
This is a newbie-level question.

I want to construct a query, which returns the results sorted as follows:
1. Results having "all the terms" of the query string in title should be
listed first
2. Results having  "any of the terms" of the query string in the title
should be listed next.
3. Results having "all the terms"  of the query string in summary should be
listed next
4. Results having "any of the terms" of the query string in the summary
should come last.

How do I construct the query using QueryParser. The fields to be searched
are "title", "summary".
Please help me
-- 
Sairaj Sunil

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