user2773170
user2773170

Reputation: 171

How to make wildcard search with fuzzy search in Lucene.net?

I have created lucene.net index projects. in this project if I put ~ symbol it act as a fuzzy search.

My code is,

var hits = indexSearcher.Search(QueryMaker(searchString+"~" , searchfields));

Now, I want to make wildcard search with the existing fuzzy search. Is it possible to make both search?

Upvotes: 1

Views: 2161

Answers (1)

MichaC
MichaC

Reputation: 13381

Lucene is actually pretty well documented, so is the query language:

http://lucene.apache.org/core/2_9_4/queryparsersyntax.html

Never tried but maybe it is possible to have wildcards within the search string (before the ~)?

Apart from that, here is another post with a similar issue Combining Lucene's WildcardQuery with FuzzyQuery

Upvotes: 1

Related Questions