lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vineeth Jose <>
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:
Sent from the Lucene - General mailing list archive at

View raw message