Reputation: 23
{
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
Reputation: 58
You can use fq = Id:([* TO 204 ][205 TO *])
.
In these query only that values comes which have Id : 205.
Upvotes: 1