On Thu, Apr 14, 2011 at 9:44 PM, shrinath.m <shrinat...@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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to