Reputation: 645
According to lucene documentation I'm getting proper results with the following approaches:
term:foo~1
means a fuzzy search on a word foo
allowing room for 1 errorterm:"foo bar"~1
means that foo
and bar
should be within 1 word of each other in order for search to produce any meaningful result (e.g. search will match foo me bar
)Question: is there a way to query lucene so that term:"foo bar"~1
means that it's a fuzzy search and token foo bar
as a whole is allowed 1 error in it?
If it's of any help, I am using standard analyzer on the term
field
Upvotes: 0
Views: 180