Hi,
I'm having problems understanding query parsers handling of AND and OR
if there's more than one operator.
E.g.
a OR b AND c
gives the same number of hits as
b AND c
(only scores are different)
and
a AND b OR c AND d
seems to be equivalent to
a AND b AND C AND d
which doesn't seem logical
Ype,
It's a bug, and there is a fix for this in the latest CVS
near the end of the QueryParser.jj file:
// avoid boosting null queries, such as those caused by stop words
if (q != null) {
q.setBoost(f);
}
I had checked out the latest sources from public cvs. The posted
Stefan,
I didn't provide the patch, I just remembered the code from
a recent reading.
I took another look whether there are more such cases
in the Term() method, but I couldn't find anything clear
in the .jj file. The generated .java file didn't help much either.
Could you provide a line number
On Tue, Dec 09, 2003 at 10:57:51AM +0100, Morus Walter wrote:
Hi,
I'm having problems understanding query parsers handling of AND and OR
if there's more than one operator.
E.g.
a OR b AND c
gives the same number of hits as
b AND c
(only scores are different)
This would make sense if
On Tuesday 09 December 2003 17:58, Ype Kingma wrote:
Stefan,
I didn't provide the patch, I just remembered the code from
a recent reading.
I took another look whether there are more such cases
in the Term() method, but I couldn't find anything clear
in the .jj file. The generated .java