Lucene/ElasticSearch => How to make "Paleo" NOT return results for "Paleontology"? -


i using elasticsearch , lucene standard analyzer. want make index not return results "paleontology" when query "paleo". want return results "paleolithitic" related "paleo". in other words, want analyzer more intelligent, , filter out stems not related keyword, while keeping stems related it. solutions have available?

implement own stemming filter (or extend existing one). standard analyzer doesn't use stemming, i'm not sure exact stemmer you're using. though, here porterstemmer in lucene.

http://lucene.apache.org/core/4_1_0/analyzers-common/org/apache/lucene/analysis/en/porterstemfilter.html

if seems complex, put stopword filter after you're stemmer , reject token want.


Comments