# Non Alphanumeric character searching

**URL:** <https://discuss.elastic.co/t/non-alphanumeric-character-searching/15054>\
**Category:** Elasticsearch\
**Created:** [December 30, 2013, 2:05pm UTC](https://discuss.elastic.co/t/non-alphanumeric-character-searching/15054 "2013-12-30T14:05:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![deep\_saxena](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@deep\_saxena](https://discuss.elastic.co/u/deep_saxena)\
**Post date:** [December 30, 2013, 2:05pm UTC](https://discuss.elastic.co/t/non-alphanumeric-character-searching/15054/1 "2013-12-30T14:05:47Z")

</div>

#%##%#%#$%#%#$%#$ my data contain this string.

I am firing this query, but not able to search the data. any clues why it  
is not searching? if I put abc in between #%##%#%#abc$%#%#$%#$ and fire the  
same query which this query string it find out the result for me.

{  
"from" : 0,  
"size" : 3,  
"query" : {  
"filtered" : {  
"query" : {  
"bool" : {  
"should" : {  
"query\_string" : {  
"query" : ""#%##%#%#$%#%#$%#$"",  
"default\_field" : "DATA"  
}  
}  
}  
},  
"filter" : {  
"range" : {  
"timestamp" : {  
"from" : 0,  
"to" : 1388412035468,  
"include\_lower" : true,  
"include\_upper" : true  
}  
}  
}  
}  
}  
}

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b13816bb-e08b-4627-a517-dce0f90ca581%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b13816bb-e08b-4627-a517-dce0f90ca581%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [January 1, 2014, 8:13pm UTC](https://discuss.elastic.co/t/non-alphanumeric-character-searching/15054/2 "2014-01-01T20:13:30Z")

</div>

Hey,

most likely those special chars have been removed before your data has been  
stored in the inverted index - and thus cannot be searched for. This highly  
depends on the mapping for a field. You can play around with the analyze  
API to find out, how a string is tokenized and stored. See

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Or use the awesome inquisitor plugin, which offers a nice GUI around that  
functionality, see [GitHub - polyfractal/elasticsearch-inquisitor: Site plugin for Elasticsearch to help understand and debug queries.](https://github.com/polyfractal/elasticsearch-inquisitor)

--Alex

On Mon, Dec 30, 2013 at 3:05 PM, deep saxena [sandy100ster@gmail.com](mailto:sandy100ster@gmail.com) wrote:

> #%##%#%#$%#%#$%#$ my data contain this string.
> 
> I am firing this query, but not able to search the data. any clues why it  
> is not searching? if I put abc in between #%##%#%#abc$%#%#$%#$ and fire the  
> same query which this query string it find out the result for me.
> 
> {  
> "from" : 0,  
> "size" : 3,  
> "query" : {  
> "filtered" : {  
> "query" : {  
> "bool" : {  
> "should" : {  
> "query\_string" : {  
> "query" : ""#%##%#%#$%#%#$%#$"",  
> "default\_field" : "DATA"  
> }  
> }  
> }  
> },  
> "filter" : {  
> "range" : {  
> "timestamp" : {  
> "from" : 0,  
> "to" : 1388412035468,  
> "include\_lower" : true,  
> "include\_upper" : true  
> }  
> }  
> }  
> }  
> }  
> }
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/b13816bb-e08b-4627-a517-dce0f90ca581%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b13816bb-e08b-4627-a517-dce0f90ca581%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-\_kNROsaOVN0ZDbp7x9VDRD\_HxAAP2UUeMO8j189OLkA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-_kNROsaOVN0ZDbp7x9VDRD_HxAAP2UUeMO8j189OLkA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![deep\_saxena](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@deep\_saxena](https://discuss.elastic.co/u/deep_saxena)\
**Post date:** [January 2, 2014, 2:37pm UTC](https://discuss.elastic.co/t/non-alphanumeric-character-searching/15054/3 "2014-01-02T14:37:38Z")

</div>

Hey  
Thanx for the reply. I am not able to install the inquisitor, can you  
please show us the path on this

On Thursday, 2 January 2014 01:43:30 UTC+5:30, Alexander Reelsen wrote:

> Hey,
> 
> most likely those special chars have been removed before your data has  
> been stored in the inverted index - and thus cannot be searched for. This  
> highly depends on the mapping for a field. You can play around with the  
> analyze API to find out, how a string is tokenized and stored. See  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-analyze.html)
> 
> Or use the awesome inquisitor plugin, which offers a nice GUI around that  
> functionality, see [GitHub - polyfractal/elasticsearch-inquisitor: Site plugin for Elasticsearch to help understand and debug queries.](https://github.com/polyfractal/elasticsearch-inquisitor)
> 
> --Alex
> 
> On Mon, Dec 30, 2013 at 3:05 PM, deep saxena \<[sandy1...@gmail.com](mailto:sandy1...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > #%##%#%#$%#%#$%#$ my data contain this string.
> > 
> > I am firing this query, but not able to search the data. any clues why it  
> > is not searching? if I put abc in between #%##%#%#abc$%#%#$%#$ and fire the  
> > same query which this query string it find out the result for me.
> > 
> > {  
> > "from" : 0,  
> > "size" : 3,  
> > "query" : {  
> > "filtered" : {  
> > "query" : {  
> > "bool" : {  
> > "should" : {  
> > "query\_string" : {  
> > "query" : ""#%##%#%#$%#%#$%#$"",  
> > "default\_field" : "DATA"  
> > }  
> > }  
> > }  
> > },  
> > "filter" : {  
> > "range" : {  
> > "timestamp" : {  
> > "from" : 0,  
> > "to" : 1388412035468,  
> > "include\_lower" : true,  
> > "include\_upper" : true  
> > }  
> > }  
> > }  
> > }  
> > }  
> > }
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/b13816bb-e08b-4627-a517-dce0f90ca581%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b13816bb-e08b-4627-a517-dce0f90ca581%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dfe29397-662a-45b8-b1de-dcb3ca4c0a43%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dfe29397-662a-45b8-b1de-dcb3ca4c0a43%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![deep\_saxena](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@deep\_saxena](https://discuss.elastic.co/u/deep_saxena)\
**Post date:** [January 2, 2014, 2:50pm UTC](https://discuss.elastic.co/t/non-alphanumeric-character-searching/15054/4 "2014-01-02T14:50:44Z")

</div>

Thanx you very much

On Thursday, 2 January 2014 01:43:30 UTC+5:30, Alexander Reelsen wrote:

> Hey,
> 
> most likely those special chars have been removed before your data has  
> been stored in the inverted index - and thus cannot be searched for. This  
> highly depends on the mapping for a field. You can play around with the  
> analyze API to find out, how a string is tokenized and stored. See  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-analyze.html)
> 
> Or use the awesome inquisitor plugin, which offers a nice GUI around that  
> functionality, see [GitHub - polyfractal/elasticsearch-inquisitor: Site plugin for Elasticsearch to help understand and debug queries.](https://github.com/polyfractal/elasticsearch-inquisitor)
> 
> --Alex
> 
> On Mon, Dec 30, 2013 at 3:05 PM, deep saxena \<[sandy1...@gmail.com](mailto:sandy1...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > #%##%#%#$%#%#$%#$ my data contain this string.
> > 
> > I am firing this query, but not able to search the data. any clues why it  
> > is not searching? if I put abc in between #%##%#%#abc$%#%#$%#$ and fire the  
> > same query which this query string it find out the result for me.
> > 
> > {  
> > "from" : 0,  
> > "size" : 3,  
> > "query" : {  
> > "filtered" : {  
> > "query" : {  
> > "bool" : {  
> > "should" : {  
> > "query\_string" : {  
> > "query" : ""#%##%#%#$%#%#$%#$"",  
> > "default\_field" : "DATA"  
> > }  
> > }  
> > }  
> > },  
> > "filter" : {  
> > "range" : {  
> > "timestamp" : {  
> > "from" : 0,  
> > "to" : 1388412035468,  
> > "include\_lower" : true,  
> > "include\_upper" : true  
> > }  
> > }  
> > }  
> > }  
> > }  
> > }
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/b13816bb-e08b-4627-a517-dce0f90ca581%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b13816bb-e08b-4627-a517-dce0f90ca581%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1be366ea-c1d0-46c3-ac76-e05b95f0a189%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1be366ea-c1d0-46c3-ac76-e05b95f0a189%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 1:58am UTC](https://discuss.elastic.co/t/non-alphanumeric-character-searching/15054/5 "2017-07-06T01:58:40Z")

</div>


