Solr query to get only matched documnets from an array of json objects?

24 views
Skip to first unread message

Rajendra Jangir

unread,
Apr 10, 2018, 7:42:25 AM4/10/18
to SolrNet
 {
"id" : '600',
"imei": "imei2",
"date": "2018-05-10",
"data": [
{
"latitude": 101,
"longitude" : 201,
"speed" : 80,
"created_at" : "2018-05-10T11:28:18.772Z"},
{
"latitude": 20,
"longitude" : 70,
"speed" : 65,
"created_at" : "2018-05-10T12:28:18.772Z"},
{
"latitude": 110,
"longitude" : 210,
"speed" : 70,
"created_at" : "2018-05-10T10:28:18.772Z"},
{
"latitude": 34,
"longitude" : 44,
"speed" : 65,
"created_at" : "2018-05-10T01:28:18.772Z"}
]
}

Now I want to apply a filter on speed like q=id:600 AND data.speed:65 then it should return only two documents from data array field.
So what would be the Solr query to do the same?
Please help me.
Thanks in advance
Reply all
Reply to author
Forward
0 new messages