开发者

lucene and plurals

开发者 https://www.devze.com 2022-12-27 02:20 出处:网络
If you look at the comment here you\'ll see Lucene is very much the tool to do this. If you want apple and apples

If you look at the comment here you'll see

Lucene is very much the tool to do this. If you want apple and apples (plural) to match, you just need to be careful about using the correct language stemmer when indexing and querying the index.

开发者_如何学Python

I'm new to lucene and barely understand how adding and saving document work.

How do I search my tag field so apples and apple are the same?

I am using lucene.net 2.9.1


I suppose you're looking for the stemming algorithm here is an example reduced for plurals

You may find how-to-enable-stemming-when-searching-using-lucene-net helpful for .net

0

精彩评论

暂无评论...
验证码 换一张
取 消