lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lboutros <boutr...@gmail.com>
Subject AND operator in multi valued fields
Date Thu, 18 Sep 2014 15:24:36 GMT
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.

Mime
View raw message