Re: Another problem with the QueryParser

2006-11-16 Thread Chris Hostetter
:Find all documents in the index with the word "Table", and then from that : list, remove any docs that don't have "Chair"? correct. : If the latter is true, then how are these two queries different: : "Table OR NOT Chair" : "Table AND NOT Chair" They aren't. Those queries are fu

Re: Another problem with the QueryParser

2006-11-16 Thread Lucifer Hammer
Hi Chris, Thanks for your response. If it's alright with you, I'd like to spell it out, just so you can confirm that I'm understanding what you're saying: Here's the Query: "Table OR NOT Chair" I thought the results I should expect are: All documents in the index that have the word "Table"

Re: Another problem with the QueryParser

2006-11-15 Thread Chris Hostetter
your first query only returns one document because there is only one clause selecting results -- it doesn't matter whether you write "Table AND NOT Chair" or "Table OR NOT Chair" -- the only clause building up a list of documents is "Table" ... the "NOT Chair" part of the query can only take away