I use elasticsearch dsl python client in order to implement queries and run them against an ElasticSearch endpoint.
A successfull example of such query would be the following:
Search.filter("term", properties__grid=<some_string_here>)
which translates in
{
"query": {
"term": {
"properties.grid": {
"value": <some_string_here>
}
}
}
}
The problem is that some fields contain a colon (example:properties.grid:code
) and I have not found a way to implement the following query:
{
"query": {
"term": {
"properties.grid:code": {
"value": "MGRS-47RPH"
}
}
}
}