Re: MultiFieldQueryParser seems broken... Fix attached.

2004-10-04 Thread Bill Janssen
Doug Cutting writes: > >>http://issues.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1798116 > > > > > > Yes, the approach there is similar. I attempted to complete the > > solution and provide a working replacement for MultiFieldQueryParser. > > But, inspired by that message, couldn't MultiFiel

Re: MultiFieldQueryParser seems broken... Fix attached.

2004-09-10 Thread Doug Cutting
Daniel Naber wrote: On Thursday 09 September 2004 18:52, Doug Cutting wrote: I have not been able to construct a two-word query that returns a page without both words in either the content, the title, the url or in a single anchor. Can you? Like this one? konvens leitseite Leitseite is only in

Re: MultiFieldQueryParser seems broken... Fix attached.

2004-09-10 Thread sergiu gordea
. I reckon there has been a discussion (and solution :-) on how to achieve the functionality you've been after: http://issues.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1798116 I'm not sure if this would be the same though. Best regards, René Hi all, I took the code indicated by Rene but I've

Re: MultiFieldQueryParser seems broken... Fix attached.

2004-09-09 Thread Bill Janssen
> But, inspired by that message, couldn't MultiFieldQueryParser just be a > subclass of QueryParser that overrides getFieldQuery()? I wasn't sure that everything "went through" getFieldQuery(). If so, yes, that should work. In either case, I don't even think a subclass is necessary. Just have

Re: MultiFieldQueryParser seems broken... Fix attached.

2004-09-09 Thread Bill Janssen
> is it a problem if the users will search "coffee OR tea" as a search > string in the case that MultifieldQueryParser is > modifyed as Bill suggested?, and the default opperator is set to AND? > Here's what you get (which is correct): % java -classpath /usr/local/lib/lucene-1.4.1.jar:. \

Re: MultiFieldQueryParser seems broken... Fix attached.

2004-09-09 Thread Daniel Naber
On Thursday 09 September 2004 18:52, Doug Cutting wrote: > I have not been > able to construct a two-word query that returns a page without both > words in either the content, the title, the url or in a single anchor. > Can you? Like this one? konvens leitseite Leitseite is only in the title o

Re: MultiFieldQueryParser seems broken... Fix attached.

2004-09-09 Thread Doug Cutting
Bill Janssen wrote: I'd think that if a user specified a query "cutting lucene", with an implicit AND and the default fields "title" and "author", they'd expect to see a match in which both "cutting" and "lucene" appears. That is, (title:cutting OR author:cutting) AND (title:lucene OR author:lucen

Re: Handling user queries (Was: Re: MultiFieldQueryParser seems broken... Fix attached.)

2004-09-09 Thread sergiu gordea
René Hackl wrote: is it a problem if the users will search "coffee OR tea" as a search string in the case that MultifieldQueryParser is modifyed as Bill suggested?, and the default opperator is set to AND? No. There's not a problem with the proposed correction to MFQP. MFQP should work the wa

Handling user queries (Was: Re: MultiFieldQueryParser seems broken... Fix attached.)

2004-09-09 Thread "René Hackl"
> is it a problem if the users will search "coffee OR tea" as a search > string in the case that MultifieldQueryParser is > modifyed as Bill suggested?, and the default opperator is set to AND? No. There's not a problem with the proposed correction to MFQP. MFQP should work the way Bill suggested

Re: MultiFieldQueryParser seems broken... Fix attached.

2004-09-09 Thread sergiu gordea
René Hackl wrote: Bill, Thank you for clarifying on that issue. I missed the... (title:cutting OR author:cutting) AND (title:lucene OR author:lucene) ... (title:cutting OR title:lucene) AND (author:cutting OR author:lucene) Note that this would match even if only "lucene" occurred in t

Re: MultiFieldQueryParser seems broken... Fix attached.

2004-09-09 Thread "René Hackl"
Bill, Thank you for clarifying on that issue. I missed the... > (title:cutting OR author:cutting) AND (title:lucene OR author:lucene) ... > (title:cutting OR title:lucene) AND (author:cutting OR author:lucene) > > Note that this would match even if only "lucene" occurred in the ... "only luc

Re: MultiFieldQueryParser seems broken... Fix attached.

2004-09-08 Thread sergiu gordea
Hi Bill, I think that more people wait for this patch of MultifieldIndexParser. It would be nice if it will be included in the next realease candidate All the best, Sergiu Bill Janssen wrote: René, Thanks for your note. I'd think that if a user specified a query "cutting lucene", with

Re: MultiFieldQueryParser seems broken... Fix attached.

2004-09-08 Thread Bill Janssen
René, Thanks for your note. I'd think that if a user specified a query "cutting lucene", with an implicit AND and the default fields "title" and "author", they'd expect to see a match in which both "cutting" and "lucene" appears. That is, (title:cutting OR author:cutting) AND (title:lucene OR a

Re: MultiFieldQueryParser seems broken... Fix attached.

2004-09-08 Thread sergiu gordea
The class is at the end of the message. But it hink that a better solution is that one suggested by Rene: http://issues.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1798116 Wermus Fernando wrote: Bill, I don't receive any .java. Could you send it again? Thanks. -Mensaje original-

RE: MultiFieldQueryParser seems broken... Fix attached.

2004-09-08 Thread Wermus Fernando
Bill, I don't receive any .java. Could you send it again? Thanks. -Mensaje original- De: Bill Janssen [mailto:[EMAIL PROTECTED] Enviado el: Martes, 07 de Septiembre de 2004 10:06 p.m. Para: Lucene Users List CC: Ali Rouhi Asunto: MultiFieldQueryParser seems broken... Fix attached

Re: MultiFieldQueryParser seems broken... Fix attached.

2004-09-08 Thread "René Hackl"
Hi Bill, - But even if it didn't, the second problem is that the query formed would be +(title:cutting title:lucene) +(author:cutting author:lucene) That is, if the word "Lucene" was in both the author field and the title field, the match would fit. This clearly isn't what the searcher i