Class XAnalyzingSuggester.XBuilder
- java.lang.Object
-
- org.apache.lucene.search.suggest.analyzing.XAnalyzingSuggester.XBuilder
-
- Enclosing class:
- XAnalyzingSuggester
public static class XAnalyzingSuggester.XBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XBuilder(int maxSurfaceFormsPerAnalyzedForm, boolean hasPayloads, int payloadSep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSurface(org.apache.lucene.util.BytesRef surface, org.apache.lucene.util.BytesRef payload, long cost)
org.apache.lucene.util.fst.FST<org.apache.lucene.util.fst.PairOutputs.Pair<java.lang.Long,org.apache.lucene.util.BytesRef>>
build()
void
finishTerm(long defaultWeight)
boolean
hasPayloads()
int
maxSurfaceFormsPerAnalyzedForm()
void
startTerm(org.apache.lucene.util.BytesRef analyzed)
-
-
-
Method Detail
-
startTerm
public void startTerm(org.apache.lucene.util.BytesRef analyzed)
-
addSurface
public void addSurface(org.apache.lucene.util.BytesRef surface, org.apache.lucene.util.BytesRef payload, long cost) throws java.io.IOException
- Throws:
java.io.IOException
-
finishTerm
public void finishTerm(long defaultWeight) throws java.io.IOException
- Throws:
java.io.IOException
-
build
public org.apache.lucene.util.fst.FST<org.apache.lucene.util.fst.PairOutputs.Pair<java.lang.Long,org.apache.lucene.util.BytesRef>> build() throws java.io.IOException
- Throws:
java.io.IOException
-
hasPayloads
public boolean hasPayloads()
-
maxSurfaceFormsPerAnalyzedForm
public int maxSurfaceFormsPerAnalyzedForm()
-
-