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

**URL:** <https://discuss.elastic.co/t/rank-feature-query-doesnt-work-if-dot-is-in-field-value/178957>\
**Category:** Elasticsearch\
**Created:** [April 29, 2019, 2:55pm UTC](https://discuss.elastic.co/t/rank-feature-query-doesnt-work-if-dot-is-in-field-value/178957 "2019-04-29T14:55:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amyc](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@amyc](https://discuss.elastic.co/u/amyc)\
**Post date:** [April 29, 2019, 2:55pm UTC](https://discuss.elastic.co/t/rank-feature-query-doesnt-work-if-dot-is-in-field-value/178957/1 "2019-04-29T14:55:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 27, 2019, 2:55pm UTC](https://discuss.elastic.co/t/rank-feature-query-doesnt-work-if-dot-is-in-field-value/178957/2 "2019-05-27T14:55:50Z")

</div>

Closed on May 27, 2019, 2:55pm UTC

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