lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Turcotte" <pat...@gmail.com>
Subject Re: Specific Query on multiple fields
Date Thu, 09 Nov 2006 14:03:33 GMT
Hi,

How do we use a specific query on multiple fields ?
>
> for eg.
> I have to run a query "jakarta tomcat" (the string which i give in my
> textbox is with double quotes as I have to get the string 'jakarta tomcat'
> together)
> on mutiple fields like "content" ,"title","examples"


Take a look at org.apache.lucene.queryParser.MultiFieldQueryParser, it
probably does what you want.

Patrick

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message