Vishal Kumawat
Vishal Kumawat

Reputation: 23

Find Specific value from multivalued field in solr

{
     Name : "A";
     Id:["4","205","105"];
    },
    {
     Name : "B";
     Id:["4","205"];
    },
    {
     Name : "C";
     Id:["205"];
    },
    {
     Name : "D";
     Id:["205","205"];
    },

    

I have sample data like above where Id is multivalued field.

Now I have to find Only that result in output where Id = 205. Accepted output name will be C and D.

Upvotes: 1

Views: 71

Answers (1)

vipin_kr_mishra
vipin_kr_mishra

Reputation: 58

You can use fq = Id:([* TO 204 ][205 TO *]). In these query only that values comes which have Id : 205.

Upvotes: 1

Related Questions