Lucene 6.4 (couchdb-lucene) fuzzy search on a token with space

162 Views Asked by At

According to lucene documentation I'm getting proper results with the following approaches:

  1. term:foo~1 means a fuzzy search on a word foo allowing room for 1 error
  2. term:"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

0

There are 0 best solutions below