lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vineeth Jose <vineethpe...@rediffmail.com>
Subject Problem after combining queries
Date Mon, 26 May 2008 05:44:57 GMT

Hi all,
I have to implement searching for the following criteria:

"search all documents with 'status' approved and 'createddate' within the
given range."
       where 'status' and 'createddate'  are two fields.

for this i created a field query for 'status' with occurance 'Must' and a
range query for 'createddate'.
Then i combined that two and searched.

But the search results contains documents which are not approved.[Approved
documents comes first followed by others !!!]

If i remove the range query, results will contain only approved documents.

How to solve this?
-- 
View this message in context: http://www.nabble.com/Problem-after-combining-queries-tp17466089p17466089.html
Sent from the Lucene - General mailing list archive at Nabble.com.


Mime
View raw message