Query a field that has a colon

Hello,

Is it possible to use elasticsearch dsl python client to implement a query that will run against a filed with colon?

For example if a field is this properties.grid:code then a successfull query would be the following:

 "query": {
   "bool": {
     "must": {
         "match": {  
               "properties.grid:code": "MGRS-47RPH"
             }
     }
   }
 }
}

or even

{
  "query": {
    "term": {
        "properties.grid:code": {
                            "value": "MGRS-47RPH"
                        }
    }
  }
}

I fail though to do it in python's elasticsearch_dsl/search.py
where the above is translated as

Search.filter("term", properties__grid<???>=<some_string_here>)

Any suggestions?

Hi ilias_ioannou,

I'm not aware of a way around it. Using some characters including colons ( : ) in the name can be problematic. Are you able to change your colon character to something else such as underscore ( _ )?

Hi thanks for replying .I m afraid that this is not an option