# Phrase Matching using Java

**URL:** <https://discuss.elastic.co/t/phrase-matching-using-java/20575>\
**Category:** Elasticsearch\
**Created:** [November 5, 2014, 8:20am UTC](https://discuss.elastic.co/t/phrase-matching-using-java/20575 "2014-11-05T08:20:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ap1](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Ap1](https://discuss.elastic.co/u/Ap1)\
**Post date:** [November 5, 2014, 8:20am UTC](https://discuss.elastic.co/t/phrase-matching-using-java/20575/1 "2014-11-05T08:20:36Z")

</div>

I am trying to do a Phrase matching to find similar Phrases.

Eg. Name field has following entries and all 3 should be evaluated to same :

1. "USA Tech Company"
2. "USA Tech Company Alabama"
3. "USA Tech Company California"

Can you suggest a Java code that uses Phrase matcher or something similar  
to suggest that above entries in the Name field are same ( possibly higher  
score)

Thanks.

--  
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/5e514e38-18ff-4bb3-824a-a1a3309195a5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5e514e38-18ff-4bb3-824a-a1a3309195a5%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, 12:52am UTC](https://discuss.elastic.co/t/phrase-matching-using-java/20575/2 "2017-07-06T00:52:06Z")

</div>


