Class XAnalyzingSuggester.XBuilder

    • Constructor Summary

      Constructors

      Constructor and Description
      XBuilder(int maxSurfaceFormsPerAnalyzedForm, boolean hasPayloads, int payloadSep)
       
    • Constructor Detail

      • XBuilder

        public XBuilder(int maxSurfaceFormsPerAnalyzedForm,
                        boolean hasPayloads,
                        int payloadSep)
    • 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 IOException
        Throws:
        IOException
      • build

        public org.apache.lucene.util.fst.FST<org.apache.lucene.util.fst.PairOutputs.Pair<Long,org.apache.lucene.util.BytesRef>> build()
                                                                                                                                throws IOException
        Throws:
        IOException
      • hasPayloads

        public boolean hasPayloads()
      • maxSurfaceFormsPerAnalyzedForm

        public int maxSurfaceFormsPerAnalyzedForm()