# Search similar phrases

**URL:** <https://discuss.elastic.co/t/search-similar-phrases/141796>\
**Category:** Elasticsearch\
**Created:** [July 26, 2018, 2:35pm UTC](https://discuss.elastic.co/t/search-similar-phrases/141796 "2018-07-26T14:35:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gosforth](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@Gosforth](https://discuss.elastic.co/u/Gosforth)\
**Post date:** [July 26, 2018, 2:35pm UTC](https://discuss.elastic.co/t/search-similar-phrases/141796/1 "2018-07-26T14:35:48Z")

</div>

Hi,

I'm new to Elastic. I think about using this product to build product searching engine (currently works with MySQL).  
Suppose I have products "HP DeskJet 710c", "HP DeskJet 712c", "HP DeskJet 820cXi", "Oki C5650"

Typing "HP DeskJet 710c" or "HP-DeskJet 710c" or "HP DeskJet 710" I want to find first and eventually second printer but not the third or last one - distance is too far. More, I'd like to have proper score.

When I type query:  
"query": {  
"query\_string" : {  
"default\_field" : "printer\_name",  
"query" : "HP DeskJet 710"  
}  
}  
it display... all. Even OKI(!) Score is, for all, 1.  
Could you please help? I can do this with Elastic? I need to prepare index and mapping in some way?  
Regards,  
G.

---

<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:** [August 23, 2018, 2:35pm UTC](https://discuss.elastic.co/t/search-similar-phrases/141796/2 "2018-08-23T14:35:49Z")

</div>

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