Searching Lucene.net does not return results using aphostrophe or single Quotes?

I have a search engine in my project where I used lucene.net to search, I got exact results for all the offers I’m looking for, except for those that start with “The”, but I decided. But I found another problem where Lucene.net search results do not return values ​​containing aphostrophe or single quotes. Does anyone know why this is so? Is this really a bug with lucene.net? Or is there any mechanism to include results with aphostrophe in it?

For example, I searched for the word "Lorema" and , I got a result, for example

"Lorem"

"Select the animation (connect the dots) for a yellow shape without an outline"

"angles 60 \ 120 degrees in a straight line (angle 120 degrees highlighted)"

but expected result

"Lorem"

"Select the animation (connect the dots) for a yellow shape without an outline"

"angles 60 \ 120 degrees in a straight line (angle 120 degrees highlighted)"

Lorema

Lorema

+3
source share
1 answer

It depends on how the parsers create bullets from your text.

Example: Login: [The Lorem's]

WhitespaceAnalyzer → [The] [Lorem's]

StandardAnalyzer → [lorem]

SimpleAnalyzer → [the] [lorem] [s]

+3
source

All Articles