mongoose-text-search icon indicating copy to clipboard operation
mongoose-text-search copied to clipboard

Too little result

Open letunglam opened this issue 9 years ago • 1 comments

Is there any way I can get more result. In database I have:

gehen
gehen
gehend
gehende
gehendem
gehenden
gehender
gehendes
gehengelassen
gehenkt
gehenkte
gehenktem
gehenkten
gehenkter
gehenktes
gehenlassen
gehenlasst
gehenließ
gehenließen
gehenließet
gehenlässt
Gehens

However, when I search for "gehen", it returns only "gehen" and "Gehens". Is there any way I could get more relevant results?

Any help would be very appreciated

letunglam avatar Mar 14 '15 20:03 letunglam

This is too later to answer but it might help someone . For case insensitive and diacritic insensitive text searches, the $text operator (textSearch function here ) matches on the complete stemmed word. So if a document field contains the word blueberry, a search on the term blue will not match. However, blueberry or blueberries will match. This is the property of mongodb . While creating the module ,author just to make the module simple might have skipped these technicality .

coolb0y avatar Jan 24 '22 17:01 coolb0y