Re: QueryParser over multiple fields

2005-12-29 Thread euw
> > > That's a perfectly good approach as well. I didn't mean to imply > that there were only "two options", just that the two I suggested > were the most commonly used ones. > > Erik > Ah, for a moment i thought i had overlooked a "canonical" solution, i'm quite new to lucene. Thanks. B

Re: QueryParser over multiple fields

2005-12-29 Thread Erik Hatcher
On Dec 29, 2005, at 9:31 AM, [EMAIL PROTECTED] wrote: Two options - MultiFieldQueryParser or building an aggregate single field to search. I use the aggregate field option, which entails building an additional field for each document, I call it "contents", and index _all_ of the searchable tex

Re: QueryParser over multiple fields

2005-12-29 Thread euw
> > Two options - MultiFieldQueryParser or building an aggregate single > field to search. I use the aggregate field option, which entails > building an additional field for each document, I call it "contents", > and index _all_ of the searchable text into that field. > > Erik How about a

RE: QueryParser over multiple fields

2005-12-29 Thread Steven Pannell
eference in the queryString eg: QueryParser.parse("(summary:DOG OR DOG)", "title", getAnalyzer()); Steve. -Original Message- From: Gaston [mailto:[EMAIL PROTECTED] Sent: 29 December 2005 13:42 To: java-user@lucene.apache.org Subject: QueryParser over multiple fields Hallo, in

Re: QueryParser over multiple fields

2005-12-29 Thread Gaston
-Original Message- From: Gaston [mailto:[EMAIL PROTECTED] Sent: Thursday, December 29, 2005 13:42 To: java-user@lucene.apache.org Subject: QueryParser over multiple fields Hallo, in my index every document consistsof multiple fields like url,contents,description etc.I want to search for documents

RE: QueryParser over multiple fields

2005-12-29 Thread Daan de Wit
Hi Gaston, Have a look at MultiFieldQueryParser. Greetings, Daan -Original Message- From: Gaston [mailto:[EMAIL PROTECTED] Sent: Thursday, December 29, 2005 13:42 To: java-user@lucene.apache.org Subject: QueryParser over multiple fields Hallo, in my index every document consistsof

Re: QueryParser over multiple fields

2005-12-29 Thread Erik Hatcher
On Dec 29, 2005, at 7:42 AM, Gaston wrote: in my index every document consistsof multiple fields like url,contents,description etc.I want to search for documents in the url and the contents field. My problem is that the constructor of QueryParser only provide one field like "Query query=Que

QueryParser over multiple fields

2005-12-29 Thread Gaston
Hallo, in my index every document consistsof multiple fields like url,contents,description etc.I want to search for documents in the url and the contents field. My problem is that the constructor of QueryParser only provide one field like "Query query=QueryParser.parse("query",field1,analyzer