Not currently.

You could have separate explicit fields for the categories such as "cat_1", "cat_2", etc. The data would need to be replicated (possibly using a <copyField>), but redundancy to facilitate access is a reasonable approach.

-- Jack Krupansky

-----Original Message----- From: kritarth.anand
Sent: Monday, June 9, 2014 2:48 PM
To: solr-user@lucene.apache.org
Subject: accessing individual elements of a multivalued field

hi,

prod: p
cat : catA,catB,catC

prod :q
cat : catB, catC,catD

My schema consists of documents with uid : 'prod's and then they belong can
to multiple categories called 'cat' and which are represented as a
multivalued field. For a particular kind of query I need to access
individual elements separately as in

return prod where  (cat_1 == catA) or (cat_2==catB). is there a way by which
i can do that?

thanks in advance



--
View this message in context: http://lucene.472066.n3.nabble.com/accessing-individual-elements-of-a-multivalued-field-tp4140862.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to