Because ~ is proximity matching. Lucene supports finding words are a within a
specific distance away.
Search for "foo bar" within 4 words from each other.

"foo bar"~4

Note that for proximity searches, exact matches are proximity zero, and word
transpositions (bar foo) are proximity 1.
A query such as "foo bar"~10000000 is an interesting alternative to foo AND
bar.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-properly-use-Levenstein-distance-with-in-Java-tp4164793p4165079.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to