|
We will try not to have to organize a party for the second birthday of this one.
Ok, the root cause for this is the QueryParser (once again), more specifically There are several possible fixes. Included in the attached is the less However for the long term, I think that we should think of what it means to Have fun, Jean-Francois Halleux Created an attachment (id=10302)
Fix elimination of empty query conjunction - careful this patch is cumulated with my previous regarding escapting character handling
Attached patch adds a test to QP for this. It now seems like QP is doing reasonable things with stopwords at least for a few cases. Of course, I am not sure what QP should return when all the terms are stopwords (it currently returns a BooleanQuery with zero clauses)
I am not sure when this was fixed. I think it is
I don't know when this was fixed, but the example given now works, Grant's tests are already committed, and I think any QueryParser stop word issues that remain should get a new ticket. I don't think this one will help anything anymore.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Does this happen even if you put spaces in the query 'properly', so that instead
of this:
(fieldx : xxxxx OR fieldy : xxxxxxxx)AND(fieldx : stopword OR fieldy : stopword)
you use:
(fieldx: xxxxx OR fieldy: xxxxxxxx) AND (fieldx: stopword OR fieldy: stopword)
Does it still happen?
If so, please include the stack trace, preferably with line numbers, so that we
know which code to fix.
Thanks.