Module org.elasticsearch.server
Package org.elasticsearch.search.builder
Class SubSearchSourceBuilder
java.lang.Object
org.elasticsearch.search.builder.SubSearchSourceBuilder
- All Implemented Interfaces:
Writeable
,Rewriteable<SubSearchSourceBuilder>
,ToXContent
public class SubSearchSourceBuilder
extends Object
implements ToXContent, Writeable, Rewriteable<SubSearchSourceBuilder>
SearchQueryBuilder
is a wrapper class for containing all
the information required to perform a single search query
as part of a series of multiple queries for features like ranking.
It's expected to typically be used as part of a List
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.index.query.Rewriteable
MAX_REWRITE_ROUNDS
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static SubSearchSourceBuilder
fromXContent
(XContentParser parser, SearchUsage searchUsage) int
hashCode()
boolean
Rewrites this instance based on the provided context.org.apache.lucene.search.Query
toSearchQuery
(SearchExecutionContext context) toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
SubSearchSourceBuilder
-
SubSearchSourceBuilder
- Throws:
IOException
-
-
Method Details
-
fromXContent
public static SubSearchSourceBuilder fromXContent(XContentParser parser, SearchUsage searchUsage) throws IOException - Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
isFragment
public boolean isFragment()- Specified by:
isFragment
in interfaceToXContent
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
rewrite
Description copied from interface:Rewriteable
Rewrites this instance based on the provided context. The returned objects will be the same instance as this if no changes during the rewrite were applied.- Specified by:
rewrite
in interfaceRewriteable<SubSearchSourceBuilder>
- Throws:
IOException
-
getQueryBuilder
-
toSearchQuery
public org.apache.lucene.search.Query toSearchQuery(SearchExecutionContext context) throws IOException - Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-