# Elasticsearch - special character search (using elastic gui/head)

**URL:** <https://discuss.elastic.co/t/elasticsearch-special-character-search-using-elastic-gui-head/19593>\
**Category:** Elasticsearch\
**Created:** [September 3, 2014, 2:38pm UTC](https://discuss.elastic.co/t/elasticsearch-special-character-search-using-elastic-gui-head/19593 "2014-09-03T14:38:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@Karthik](https://discuss.elastic.co/u/Karthik)\
**Post date:** [September 3, 2014, 2:38pm UTC](https://discuss.elastic.co/t/elasticsearch-special-character-search-using-elastic-gui-head/19593/1 "2014-09-03T14:38:49Z")

</div>

Hi

I'm fairly new to elasticsearch and I'm trying to use fsriver to import  
bunch of text files into elasticsearch. Below's how I do it

curl -XPUT '[http://localhost:9200/mydocs/](http://localhost:9200/mydocs/)'

* * *

curl -XPUT '[http://localhost:9200/mydocs/doc/\_mapping](http://localhost:9200/mydocs/doc/_mapping)' -d '{  
"doc" : {  
"properties" : {  
"content" : {  
"index" : "not\_analyzed",  
"type" : "string",  
"store" : "yes"  
}  
}  
}  
}'

* * *

curl -XPUT 'localhost:9200/\_river/txt/\_meta' -d '{  
"type": "fs",  
"fs": {  
"name": "fs river",  
"url": "C:\TEST",  
"update\_rate": "1hr",  
"includes": "\*.txt"  
},  
"index": {"index": "mydocs","type": "doc"}  
}'

Later when I try to search the content inside the txt files using elastic  
gui with special character I get different results. I'm not getting the  
exact matches but instead it returns huge piles of data.

For example one of my txt files contains string like

"%25%25%25%25%25%25%25%25%25%25%25%25%25%25%25%25%25%25"  
"%26%26%26%26%26%26%26%26%26%26%26%26%26%26%26%26%26%26"

in separate lines. When I search (using elastic gui/head) for "%25%25%25" I  
get results from files that contain just the number '25' too. Please can  
someone point out what's wrong with my settings?

Thanks  
Karthik

--  
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/e6cfecdd-ec22-40e2-a582-51f209e8bb7e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e6cfecdd-ec22-40e2-a582-51f209e8bb7e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:04am UTC](https://discuss.elastic.co/t/elasticsearch-special-character-search-using-elastic-gui-head/19593/2 "2017-07-06T01:04:39Z")

</div>

Closed on July 6, 2017, 1:04am UTC


