List of usage examples for org.apache.lucene.analysis.shingle ShingleFilter setTokenSeparator
public void setTokenSeparator(String tokenSeparator)
From source file:org.apache.solr.analysis.ShingleFilterFactory.java
License:Apache License
public ShingleFilter create(TokenStream input) { ShingleFilter r = new ShingleFilter(input, minShingleSize, maxShingleSize); r.setOutputUnigrams(outputUnigrams); r.setOutputUnigramsIfNoShingles(outputUnigramsIfNoShingles); r.setTokenSeparator(tokenSeparator); return r;//from w w w. j ava2 s . c o m }