Thanks Mike. I just tested it on one field and looks like it works fine.
Mike Klaas wrote: > > On 4/19/07, escher2k <[EMAIL PROTECTED]> wrote: >> >> Thanks Jennifer. But the issue with the quotes would be that it would >> match >> the string exactly and >> not find it, if there were other words in between (e.g. New Capital >> Delhi). > > If you want to restrict a section of a query to a field, use brackets: > > city:(.....) > > thus: > > city:(New Delhi) --> city contains 'new' or 'delhi', highest score to > those containing both > city:(+New +Delhi) --> city contains 'new' AND city contains 'delhi' > city:"New Delhi"~1000 --> city contain 'new' with 1000 words of > 'delhi', highest score to matches having the words nearby > > -Mike > > -- View this message in context: http://www.nabble.com/Filter-question...-tf3609407.html#a10088449 Sent from the Solr - User mailing list archive at Nabble.com.