# ElasticSearch gives unexpected data when search for string like 23.com

**URL:** <https://discuss.elastic.co/t/elasticsearch-gives-unexpected-data-when-search-for-string-like-23-com/145336>\
**Category:** Elasticsearch\
**Created:** [August 21, 2018, 8:58am UTC](https://discuss.elastic.co/t/elasticsearch-gives-unexpected-data-when-search-for-string-like-23-com/145336 "2018-08-21T08:58:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand2184](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Anand2184](https://discuss.elastic.co/u/Anand2184)\
**Post date:** [August 21, 2018, 8:58am UTC](https://discuss.elastic.co/t/elasticsearch-gives-unexpected-data-when-search-for-string-like-23-com/145336/1 "2018-08-21T08:58:44Z")

</div>

Hello,

I am pretty new to ElasticSearch. I have a query.

My dataset is something like this,  
[23.com](http://23.com)  
[46.com](http://46.com)  
23ccom

> **[ABC Home Page - ABC.com](https://abc.go.com/)**
>
> Watch the ABC Shows online at abc.com. Get exclusive videos and free episodes.

Now when I try to search the data with query like [23.com](http://23.com), ElasticSearch give all records but when I try to search on [abc.com](http://abc.com) then it gives proper 1 matching result.

ElasticSearch is behaving differently for numeric search term.  
Can someone please help me to figure out what is the exact reason for such behavior of ElasticSearch?

Waiting for reply.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jaddison](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@jaddison](https://discuss.elastic.co/u/jaddison)\
**Post date:** [September 9, 2018, 10:51pm UTC](https://discuss.elastic.co/t/elasticsearch-gives-unexpected-data-when-search-for-string-like-23-com/145336/2 "2018-09-09T22:51:09Z")

</div>

You'll need to provide your index settings/doc mapping, some sample docs, and how you're querying for people to understand your problem better.

Please use code indenting/formatting to help others understand your problem better too. (Github triple ticks works here too)

---

<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:** [October 7, 2018, 10:51pm UTC](https://discuss.elastic.co/t/elasticsearch-gives-unexpected-data-when-search-for-string-like-23-com/145336/3 "2018-10-07T22:51:12Z")

</div>

Closed on October 7, 2018, 10:51pm UTC

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