Hi All.
I have the task of integrating drupal 7 and elasticssearch 5.0. Drupal module which should solve this problem now in DEV and has many bugs. I can't fix last of them.
When i send this query
{
"index":"...",
"type":"...",
"body":{
"from":0,
"size":"24",
"query":{
"bool":{
"must":{
"match_all":{
}
},
"filter":{
"geo_distance":{
"distance":"48.28km",
"field_geo_location:latlon":{
"lat":41.845183,
"lon":-74.082085
}
},
"term":{
"status":1
}
},
"must_not":[
{
"term":{
"type":"type 1"
}
},
{
"term":{
"type":"type 2"
}
},
{
"term":{
"type":"type 3"
}
},
{
"term":{
"type":"type 4"
}
},
{
"term":{
"nid":"6452"
}
}
],
"should":[
{
"term":{
"status":1
}
},
{
"term":{
"author":"3686"
}
},
{
"term":{
"search_api_access_node":"node_access_all:0"
}
},
{
"term":{
"search_api_access_node":"node_access_nodeaccess_userreference:3686"
}
},
{
"term":{
"search_api_access_node":"node_access_nodeaccess_userreference_author:3686"
}
},
{
"term":{
"search_api_access_node":"node_access_nodeaccess_userreference_all:1"
}
},
{
"term":{
"search_api_access_node":"node_access__all"
}
}
]
}
},
"aggs":{
[here some aggs]
}
}
}
I see next error message
"[geo_distance] malformed query, expected [END_OBJECT] but found [FIELD_NAME]"
Can someone say what the problem is