In my application I have a Company, with the name field of This is a test
, which is correctly being indexed by Lucene.Net. For reference, my MultiFieldQueryParser
has its default operator set to QueryParser.Operator.AND
.
My search passes when I search for this test~
and this tst~
. However, my search fails when I attempt to search for this~ test~
, thas~ test~
, thas test~
, and other variations.
This whole purpose is to allow the user to misspell their search a bit, so if the user searches for Jon Doe
it will still show results for John Doe
, allowing users to not remember exact spelling of things they entered in the database. Unfortunately, it seems like it is only allowing fuzzy searches on the last term in the search phrase. Am I doing something wrong, or do I need to use a whole separate Analyzer in order to do this?