Class SearchPlugin.QuerySpec<T extends QueryBuilder>

    • Constructor Detail

      • QuerySpec

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