Module org.elasticsearch.server
Interface RetrieverParser<RB extends RetrieverBuilder>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Defines a retriever parser that is able to parse
RetrieverBuilder
s
from XContent
.-
Method Summary
Modifier and TypeMethodDescriptionfromXContent
(XContentParser parser, RetrieverParserContext context) Creates a newRetrieverBuilder
from the retriever held by theXContentParser
.
-
Method Details
-
fromXContent
Creates a newRetrieverBuilder
from the retriever held by theXContentParser
. The state on the parser contained in this context will be changed as a side effect of this method call. TheRetrieverParserContext
tracks usage of retriever features and queries when available.- Throws:
IOException
-