Both queries seem valid. The values are there and you asking to match them. They both should match.
Can you explain how query 2 is actually different from query 1? Are you saying you want to match 1st value with 1st value (like positional constraints?). Regards, Alex. Personal: http://www.outerthoughts.com/ and @arafalov Solr resources and newsletter: http://www.solr-start.com/ and @solrstart Solr popularizers community: https://www.linkedin.com/groups?gid=6713853 On 18 September 2014 11:24, lboutros <boutr...@gmail.com> wrote: > Dear all, > > let's say you have two multivalued fields with two different complex > analyzers in a quite complex schema. > > I would like to match specific combinations of values in these fields. > > For instance : > > Field1 : Value1, Value2 > Field2 : Value3, Value4 > > I would like to match this document with a query like this one : > > +Field1:Value1 +Field2:Value3 > > But not with this one : > > +Field1:Value1 +Field2:Value4 > > I tried to check the PayloadNearQuery class but this class cannot use two > different fields (due to the SpanNearQuery inheritance). > > Is there an easy way to do that ? > > Ludovic. > > > > ----- > Jouve > France. > -- > View this message in context: > http://lucene.472066.n3.nabble.com/AND-operator-in-multi-valued-fields-tp4159715.html > Sent from the Solr - User mailing list archive at Nabble.com.