Phrase Matching using Java

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5e514e38-18ff-4bb3-824a-a1a3309195a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.