Interface QueryParser<QB extends QueryBuilder>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface QueryParser<QB extends QueryBuilder>
Defines a query parser that is able to parse QueryBuilders from XContent.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
    Creates a new QueryBuilder from the query held by the XContentParser.
  • Method Details

    • fromXContent

      QB fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException
      Creates a new QueryBuilder from the query held by the XContentParser. The state on the parser contained in this context will be changed as a side effect of this method call
      Throws:
      IOException