= FSDirectory.open(new File(pathname));
Analyzer analyzer //<co id="luc.index.analyzer"/>
= new EnglishAnalyzer(Version.LUCENE_36);
if (nGramSize > 1) { //<co id="luc.index.shingle"/>
ShingleAnalyzerWrapper sw
= new ShingleAnalyzerWrapper(analyzer,
nGramSize, // min shingle size
nGramSize, // max shingle size
"-", // token separator
true, // output unigrams
true); // output unigrams if no shingles