How to instruct StandardAnalyzer in Lucene to not to remove stop words? -


simple question : how make lucene's standardanalyzer not remove stop words when analyzing sentence ?

the answer version-dependent. lucene 3.0.3 (current), need construct standardanalyzer empty set of stop words, using this:

analyzer ana = new standardanalyzer(lucene_30, collections.emptyset()); 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -