简体   繁体   中英

Lucene.Net 3.0.3 Search with stemming or search for best match

Trying to get the search to work the way i need it... currently i use StandardAnalyzer() to analyze my data into a index after that i use a QueryParser () with a Query() and execute... If a document has the word suspected in it search for "suspected" i will get my doc in it but if i search for "suspect" i'm not getting any results... so my question is i want to implement either stemming or a better query to my searching... I know you get SnowballAnalyzer for stemming but its not available in Lucene.Net 3.0.3 and i'm not sure that there is another query that can provide me with the required searching functionality... i tried using the FuzzyQuery and then it works but it only works for one word searches and not multiple word searches...

Edit How do i implement stemming on Lucene.Net 3.0.3

http://nuget.org/packages/Lucene.Net.Contrib/包中找到了我一直在寻找的答案,您会获得荧光笔和snowballfilter,因此我只是使用snowballfilter阻止了搜索词并对其进行通配符搜索相当容易

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM