Query Parser AND / OR

2003-12-09 Thread Morus Walter
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

Re: boosting StandardAnalyzer, stop words

2003-12-09 Thread Stefan Groschupf
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

Re: boosting StandardAnalyzer, stop words

2003-12-09 Thread Ype Kingma
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

Re: Query Parser AND / OR

2003-12-09 Thread Dror Matalon
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

Re: boosting StandardAnalyzer, stop words

2003-12-09 Thread Ype Kingma
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