Tim,

That's because Lucene defaults to "OR" operator unless you override that 
explicitly. Probably, you can try giving your keywords in quotes or with "AND" 
operator and check.

-----Original Message-----
From: Tim Haughton [mailto:timhaugh...@gmail.com]
Sent: Friday, January 23, 2009 5:13 AM
To: lucene-net-user@incubator.apache.org
Subject: Query Types

My queries are working in the opposite sense to what I would like at the
minute. I have a search text box in my app, but the more words I add into
the search box, the more documents it finds. I want it to work the opposite
way around, so fewer are found.

In other words I want to search on "word1 AND word2 AND word3" rather than
"word1 OR word2 OR word3".

I'm sure it's trivial, pointer welcome.

Tim

Reply via email to