# Question mark in field name

**URL:** <https://discuss.elastic.co/t/question-mark-in-field-name/29359>\
**Category:** Elasticsearch\
**Created:** [September 16, 2015, 3:55am UTC](https://discuss.elastic.co/t/question-mark-in-field-name/29359 "2015-09-16T03:55:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_Nill](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jim\_Nill](https://discuss.elastic.co/u/Jim_Nill)\
**Post date:** [September 16, 2015, 3:55am UTC](https://discuss.elastic.co/t/question-mark-in-field-name/29359/1 "2015-09-16T03:55:43Z")

</div>

Hi!

If I have a field called string\_field? (with a question mark), will it affect searching? Locally, I'm using 1.0.1 and the query below works fine while on our staging server running 1.3.9, the query returns other results.

{"query":{"bool":{"must":[{"query\_string":{"fields":["string\_field?"],"query":""foo" OR "bar""}}]}},"from":"0","size":"20"}

I am pretty sure that I have items in the index with string\_field? = foo/bar but they are not shown as the top results. I have the same logic for another field but the field name doesn't have a question mark and it works fine in 1.3.9. Is there a way to make the field work with a question mark?

---

<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:** [July 5, 2017, 11:50pm UTC](https://discuss.elastic.co/t/question-mark-in-field-name/29359/2 "2017-07-05T23:50:10Z")

</div>


