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

python - Does anyone know how to configure the hunpos wrapper class on nltk? -

mysql - How to insert just year and month into date field? -