Class SearchPlugin.SuggesterSpec<T extends SuggestionBuilder<T>>

    • Constructor Detail

      • SuggesterSpec

        public SuggesterSpec​(java.lang.String name,
                             Writeable.Reader<T> reader,
                             CheckedFunction<XContentParser,​T,​java.io.IOException> parser)
        Specification of custom Suggester.
        Parameters:
        name - the name by which this suggester might be parsed or deserialized. Make sure that the query builder returns this name for NamedWriteable.getWriteableName().
        reader - the reader registered for this suggester's builder. Typically a reference to a constructor that takes a StreamInput
        parser - the parser the reads the suggester builder from xcontent