# Search with special symbol and Suggest right value when user give wrong value

**URL:** <https://discuss.elastic.co/t/search-with-special-symbol-and-suggest-right-value-when-user-give-wrong-value/51052>\
**Category:** Elasticsearch\
**Created:** [May 26, 2016, 11:33am UTC](https://discuss.elastic.co/t/search-with-special-symbol-and-suggest-right-value-when-user-give-wrong-value/51052 "2016-05-26T11:33:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![taruntyagi94](https://avatars.discourse-cdn.com/v4/letter/t/ac91a4/32.png) [@taruntyagi94](https://discuss.elastic.co/u/taruntyagi94)\
**Post date:** [May 26, 2016, 11:33am UTC](https://discuss.elastic.co/t/search-with-special-symbol-and-suggest-right-value-when-user-give-wrong-value/51052/1 "2016-05-26T11:33:26Z")

</div>

Hello ,

I am using elastic-Search in my project now i am facing some problems .

1. How can i search data with special symbol?

For example : if we have this type of data=  
{  
name:" mohan & sohan",  
[emails:"tt@gmail.com](mailto:emails:%22tt@gmail.com),ts@yahoo.com",  
address:"H.no-1 street no. 1 gurgaon ( haryana )"  
} ,  
{  
name:" mohan/sohan",  
[emails:"r.s123@gmail.com](mailto:emails:%22r.s123@gmail.com),ts@yahoo.com",  
address:"H.no-1 street no ~ 1 gurgaon ( haryana )"  
} ,  
{  
name:" ram-sharma",  
[emails:"rs@gmail.com](mailto:emails:%22rs@gmail.com),rs@yahoo.com",  
address:"H.no-1/2 street no. 1 gurgaon ( haryana )"  
}

search with uri search api like  
/index/type/\_search?q=_t@gma_  
/index/type/\_search?q=_( haryana )_  
/index/type/\_search?q=\*1/2 \*

for first query it gives blank result.  
for second query it gives different result.  
for third query it gives parsing error.

2.How can i suggest right value when user enter wrong value?

consider above data

For Example: /index/type/\_search?q=_[pp@gmal.om](mailto:pp@gmal.om)_

I have used both suggester (term, phrase) it gives different result

means if we use phrase suggester it gives these result for above query  
tt gmal om , pp gmail om ,pp gmal com

and in term suggester it give these result

[pp@gmal.om](mailto:pp@gmal.om) , tt , gmail , com [gmail.com](http://gmail.com) ,com

I need this type of suggestion

For Example: /index/type/\_search?q=_[pp@gmal.om](mailto:pp@gmal.om)_  
[pp@gmal.om](mailto:pp@gmal.om) not in my database so it should suggest [tt@gmail.com](mailto:tt@gmail.com)

Please help me .

Thank you  
Tarun Tyagi

---

<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, 10:48pm UTC](https://discuss.elastic.co/t/search-with-special-symbol-and-suggest-right-value-when-user-give-wrong-value/51052/2 "2017-07-05T22:48:51Z")

</div>


