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.ParamsNested 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_ROUNDSFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SubSearchSourceBuilderfromXContent(XContentParser parser, SearchUsage searchUsage) inthashCode()booleanRewrites this instance based on the provided context.org.apache.lucene.search.QuerytoSearchQuery(SearchExecutionContext context) toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(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:
toXContentin interfaceToXContent- Throws:
IOException
-
isFragment
public boolean isFragment()- Specified by:
isFragmentin interfaceToXContent
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
rewrite
Description copied from interface:RewriteableRewrites 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:
rewritein interfaceRewriteable<SubSearchSourceBuilder>- Throws:
IOException
-
getQueryBuilder
-
toSearchQuery
public org.apache.lucene.search.Query toSearchQuery(SearchExecutionContext context) throws IOException - Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-