Rank feature query doesn't work if dot is in field value

Hi,
I am upgrading to ES 7, and using the new field datatype "rank features" for one of my field. The field values can have dot in the string, e.g. "sports", "sports.football".
I encountered a problem with rank feature query: if search the value with dot, the query doesn't return results,
e.g.:
"query": {
"rank_feature": {
"field": "topics.sports.football"
}
I tried to escape the dot by doing this:
"query": {
"rank_feature": {
"field": "topics.sports\.football"
}
Still failed to get results.

Is there a way to escape the dot in this query?

Of course I could change dot to other character but it is a hack since this convention is used in our system in other places. I think there are other use cases such as domain name, url, etc, which have dot in the string value.

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