atom feed14 messages in org.apache.lucene.solr-userMatching on a multi valued field
FromSent OnAttachments
Brian LambMar 29, 2011 1:56 pm 
Jonathan RochkindMar 29, 2011 2:06 pm 
Savvas-Andreas MoysidisMar 29, 2011 2:07 pm 
Erick EricksonMar 29, 2011 2:10 pm 
Savvas-Andreas MoysidisMar 29, 2011 2:11 pm 
Markus JelsmaMar 29, 2011 2:12 pm 
Markus JelsmaMar 29, 2011 2:14 pm 
Juan Pablo MoraMar 29, 2011 3:31 pm 
Brian LambMar 30, 2011 8:50 am 
Brian LambApr 4, 2011 12:20 pm 
Juan Pablo MoraApr 4, 2011 12:30 pm 
Jonathan RochkindApr 4, 2011 3:44 pm 
Michael SokolovApr 5, 2011 4:32 am 
Renaud DelbruApr 5, 2011 6:30 am 
Subject:Matching on a multi valued field
From:Brian Lamb (bria@journalexperts.com)
Date:Mar 29, 2011 1:56:59 pm
List:org.apache.lucene.solr-user

Hi all,

I have a field set up like this:

<field name="common_names" multiValued="true" type="text" indexed="true" stored="true" required="false" />

And I have some records:

RECORD1 <arr name="common_names"> <str>man's best friend</str> <str>pooch</str> </arr>

RECORD2 <arr name="common_names"> <str>man's worst enemy</str> <str>friend to no one</str> </arr>

Now if I do a search such as: http://localhost:8983/solr/search/?q=*:*&fq={!q.op=AND df=common_names}man's friend

Both records are returned. However, I only want RECORD1 returned. I understand why RECORD2 is returned but how can I structure my query so that only RECORD1 is returned?

Thanks,