Re: Complete field search

2007-03-13 Thread Doron Cohen
This came up in the list with several solutions - look for: Asserting that a value must match the entire content of a field Doron "Kainth, Sachin" <[EMAIL PROTECTED]> wrote on 13/03/2007 03:18:50: > Hi all, > > Is it possible to search whether a term is equal to the entire contents > of a fiel

Re: Complete field search

2007-03-13 Thread Xiaocheng Luan
Or, you may index the fields that you want "exact matches" as non-tokenized. Thanks, Xiaocheng Bhavin Pandya <[EMAIL PROTECTED]> wrote: 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 >conta

Re: Complete field search

2007-03-13 Thread Bhavin Pandya
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"