# Storing string with : and

**URL:** <https://discuss.elastic.co/t/storing-string-with-and/371016>\
**Category:** Elasticsearch\
**Created:** [November 25, 2024, 10:34am UTC](https://discuss.elastic.co/t/storing-string-with-and/371016 "2024-11-25T10:34:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dikesGearing](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@dikesGearing](https://discuss.elastic.co/u/dikesGearing)\
**Post date:** [November 25, 2024, 10:34am UTC](https://discuss.elastic.co/t/storing-string-with-and/371016/1 "2024-11-25T10:34:48Z")

</div>

So... I a problem with my or no the companies data which can contain `:` and `.` and other valid value a-z0-9åäö.:!#$%&''\*+/=?^\_`{|}~- , in multiple fields and it can look like this _sdk:narhalsan:0203:vgregion.se_. I'm already using the java `import org.apache.lucene.queryparser.classic.QueryParserBase` to escape the query but should i also do that to all the data before we build our elasticsearch index?

P.S. I'm currently getting 200 hits when running a simple\_query against our fields when only one entry exists with sdk:narhalsan:0203:vgregion.se.
