Wonderful, Thank you both. Pete.
-----Original Message----- From: Erik Hatcher [mailto:erik.hatc...@gmail.com] Sent: Thursday, June 17, 2010 3:33 PM To: solr-user@lucene.apache.org Subject: Re: Exact match on a filter And when you do that, a best practice for fq'ing on a string field is: fq={!raw f=field_name}value That avoids query parsing and the hassles associated with escaping special characters. Erik On Jun 17, 2010, at 6:22 PM, Joe Calderon wrote: > use a copyField and index the copy as type string, exact matches on > that field should then work as the text wont be tokenized > > On Thu, Jun 17, 2010 at 3:13 PM, Pete Chudykowski > <pchudykow...@shopzilla.com> wrote: >> Hi, >> >> I'm trying with no luck to filter on the exact-match value of a >> field. >> Speciffically: >> fq=brand:apple >> returns document's whose 'brand' field contains values like "apple >> bottoms". >> >> Is there a way to formulate the fq expression to match precisely >> and only "apple" ? >> >> Thanks in advance for your help. >> Pete. >>