Exact match on a filter

2010-06-17 Thread Pete Chudykowski
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

Re: Exact match on a filter

2010-06-17 Thread Joe Calderon
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

Re: Exact match on a filter

2010-06-17 Thread Erik Hatcher
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

RE: Exact match on a filter

2010-06-17 Thread Pete Chudykowski
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