I am trying to write a query for the below input(array of objects)

I am trying to write a query for the below input(array of objects).

"UserDetails": [                                    
     { "Name" : "Vanaraj", "Age" : "27", "country" : "India" },
     { "Name" : "Ranjit", "Age" : "26", "country" : "US" }
  ]

Name, Age, Country are three different fields, their type is text. From the front end, input will come like the above combination of all three fields with the array.

I need to write a query with these three combinations and filter the records from the index based on the combination of all the three fields and their values. "UserDetails" is just a name which I mentioned three fields only present in the index.

Search the index with the combination of {"Name" : "Vanaraj", "Age" : "27", "country" : "India"} and { "Name" : "Ranjit", "Age" : "26", "country" : "US" } and output should come whatever match with these combination.

Hey,

take a look at the nested datatype plus its queries and aggregations.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.