I have a problem using Lucene.NET 2.9.4. Maybe anybody can help me.
Currently when the user enter the word open i will change the search therm automatically to *open*. I have set QueryParser.SetAllowLeadingWildcard(true); i know, this can be expensive...
My Text is:
"You can use the menu file / open to edit an existing document"
When i use open* or open as a search term, lucene find the text.
When i use *open* lucene doesn't find the text.
Why not? What is problem with a leading wildcard? I want to find the search term on start, at the end and in the middle of a word.
i want to search for open and...
- foo bar => is not a match
- opening foo bar => is a match
- testopen foo bar => is a match
- testopening foo bar => is a match
How can i do this?