lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trejkaz <trej...@trypticon.org>
Subject Re: switching between Query parsers
Date Mon, 18 Apr 2011 20:58:06 GMT
On Thu, Apr 14, 2011 at 9:44 PM, shrinath.m <shrinath.m@webyog.com> wrote:
> Consider this case :
>
> Lucene index contains documents with these fields :
> title
> author
> publisher
>
> I have coded my app to use MultiFieldQueryParser so that it queries all fields.
> Now if user types something like "author:tom" in search box, how do I make
> it go with only that field ?

That should already be happening.  MultiFieldQueryParser only applies
the multiple fields when no field is specified.

TX

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message