# Partial search allowing escape characters

**URL:** <https://discuss.elastic.co/t/partial-search-allowing-escape-characters/33511>\
**Category:** Elasticsearch\
**Created:** [November 2, 2015, 11:42am UTC](https://discuss.elastic.co/t/partial-search-allowing-escape-characters/33511 "2015-11-02T11:42:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arshbeer\_Singh](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@Arshbeer\_Singh](https://discuss.elastic.co/u/Arshbeer_Singh)\
**Post date:** [November 2, 2015, 11:42am UTC](https://discuss.elastic.co/t/partial-search-allowing-escape-characters/33511/1 "2015-11-02T11:42:35Z")

</div>

Pardon me if it sounds silly. Actually I have just started working on elastic search and wanted to implement partial search and did the same using query string but now this does not accept the special characters. I tried various combinations of escape characters but no success..

GET \_search  
{  
"query": {  
"query\_string": {  
"query": "_DF\-_ _as_",  
"fields": [  
"iD",  
"description2",  
"name",  
"matchCode"  
],  
"default\_operator": "AND"  
},  
"analyzer": "whitespace"  
}  
}

now i had added wildcards for partial search and it worked fine but i am not able to search on these special characters.

Any help is greatly appreciated! Thanks..

---

<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:41pm UTC](https://discuss.elastic.co/t/partial-search-allowing-escape-characters/33511/2 "2017-07-05T23:41:17Z")

</div>


