>
>
> 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
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
>
> 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
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
-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
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
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
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