"multivalued fields maintained in order"

That is not a feature supported by Solr.

Solr will maintain the order of an individual multivalued field and will return the values of that field in order, but makes no other use of the order.

Ditto for "corresponding multivalued fields". Solr does not support any correspondence between multivalued fields.

You must flatten your data your data to achieve any correspondence.

Multivalued field are a powerful feature of Solr, but you must be extremely careful to use them only in moderation.

-- Jack Krupansky

-----Original Message----- From: Rohit Kumar
Sent: Saturday, September 28, 2013 12:11 PM
To: solr-user@lucene.apache.org
Subject: Section Search in SOLR

Hi,

I have following SOLR documents indexed.

<doc>
   <str name="id">1</str>
   <arr name="companyName">
     <str>Boeing</str>
     <str>Kaseya</str>
   </arr>
   <arr name="positionName">
     <str>Executive</str>
     <str>Technician</str>
   </arr>
<doc>

<doc>
   <str name="id">2</str>
   <arr name="companyName">
     <str>Boeing</str>
     <str>Kodak</str>
   </arr>
   <arr name="positionName">
     <str>Technician</str>
     <str>Executive</str>
   </arr>
<doc>


Company name and Position name are multivalued fields maintained in order.

The following is the solr query.
*fq=companyName:Boeing&fq=positionName:Executive* which returns both the
documents as expected.
What changes will i have to make to be able to search for
companyName:Boeing and positionName:Executive both at same indexes in the
corresponding multivalued fields i.e. should return me only doc id 1.


Thanks,
Rohit Kumar

Reply via email to