Hi kainth,

So for example if I have a field with this text: "world cup" and I do a
search for "cup" I want it to return false but for another field that
contains exactly the text "cup" I want the result to be true.

You fire only phrase query on the first field where you want only "world cup" as a result while on second field fire Phrase query as well as term query...Or only term query depends on your need.

Thanks.
Bhavin pandya

----- Original Message ----- From: "Kainth, Sachin" <[EMAIL PROTECTED]>
To: <java-user@lucene.apache.org>
Sent: Tuesday, March 13, 2007 3:48 PM
Subject: Complete field search


Hi all,

Is it possible to search whether a term is equal to the entire contents
of a field rather than that the field contains a term?

So for example if I have a field with this text: "world cup" and I do a
search for "cup" I want it to return false but for another field that
contains exactly the text "cup" I want the result to be true.

Thanks in advance


This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.

The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW.

Consider the environment. Please don't print this e-mail unless you really need to.


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

Reply via email to