Class SpellingOptions


  • public class SpellingOptions
    extends Object
    • Field Detail

      • reader

        public org.apache.lucene.index.IndexReader reader
        An optional IndexReader
      • count

        public int count
        The number of suggestions to return, if there are any. Defaults to 1.
      • alternativeTermCount

        public int alternativeTermCount
      • suggestMode

        public org.apache.lucene.search.spell.SuggestMode suggestMode
      • extendedResults

        public boolean extendedResults
        Provide additional, per implementation, information about the results
      • accuracy

        public float accuracy
        Optionally restrict the results to have a minimum accuracy level. Per Implementation. By default set to Float.MIN_VALUE.
      • customParams

        public SolrParams customParams
        Any other custom params can be passed through. May be null and is null by default.
    • Constructor Detail

      • SpellingOptions

        public SpellingOptions()
      • SpellingOptions

        public SpellingOptions​(Collection<Token> tokens,
                               int count)
      • SpellingOptions

        public SpellingOptions​(Collection<Token> tokens,
                               org.apache.lucene.index.IndexReader reader)
      • SpellingOptions

        public SpellingOptions​(Collection<Token> tokens,
                               org.apache.lucene.index.IndexReader reader,
                               int count)
      • SpellingOptions

        public SpellingOptions​(Collection<Token> tokens,
                               org.apache.lucene.index.IndexReader reader,
                               int count,
                               org.apache.lucene.search.spell.SuggestMode suggestMode,
                               boolean extendedResults,
                               float accuracy,
                               SolrParams customParams)
      • SpellingOptions

        public SpellingOptions​(Collection<Token> tokens,
                               org.apache.lucene.index.IndexReader reader,
                               int count,
                               int alternativeTermCount,
                               org.apache.lucene.search.spell.SuggestMode suggestMode,
                               boolean extendedResults,
                               float accuracy,
                               SolrParams customParams)