On Tue, 2006-05-16 at 17:51 +0200, David Trattnig wrote:
> Is it possible to set more than one default-field at the
> QueryParser's constructor? Actually I've set it to "contents" but i'd
> like to search "contents" AND "title" and matches in title should have
> a higher rating. 

I've posted a patch to MultiFieldQueryParser that might do what you are
looking for.

http://issues.apache.org/jira/browse/LUCENE-544

Query "foo" could be treated as:

+(name:foo^1 description:foo^0.1)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to