public class LuceneAnalyser extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.lucene.analysis.Analyzer |
analyzer |
Constructor and Description |
---|
LuceneAnalyser() |
Modifier and Type | Method and Description |
---|---|
static Collection<String> |
getTerms(String toAnalyse,
Collection<String> elements)
Tokenizes and extracts terms from a string to add them into words collection.
|
public static Collection<String> getTerms(String toAnalyse, Collection<String> elements)
toAnalyse
- : the string to be analysedelements
- : the collection to which extracted words is added(C) INRIA, Univ. Grenoble Alpes & friends, 2008-2017