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