Package org.elasticsearch.search
Enum Class SearchResponseUtils
- All Implemented Interfaces:
Serializable
,Comparable<SearchResponseUtils>
,Constable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic void
declareInnerHitsParseFields
(org.elasticsearch.xcontent.ObjectParser<Map<String, Object>, Void> parser) static SearchResponse
emptyWithTotalHits
(String scrollId, int totalShards, int successfulShards, int skippedShards, long tookInMillis, ShardSearchFailure[] shardFailures, SearchResponse.Clusters clusters) static org.apache.lucene.search.TotalHits
getTotalHits
(SearchRequestBuilder request) static long
getTotalHitsValue
(SearchRequestBuilder request) static CollectorResult
parseCollectorResult
(org.elasticsearch.xcontent.XContentParser parser) static HighlightField
parseHighlightField
(org.elasticsearch.xcontent.XContentParser parser) static SearchResponse
parseInnerSearchResponse
(org.elasticsearch.xcontent.XContentParser parser) static MultiSearchResponse
parseMultiSearchResponse
(org.elasticsearch.xcontent.XContentParser parser) static SearchHit.NestedIdentity
parseNestedIdentity
(org.elasticsearch.xcontent.XContentParser parser) static SearchProfileDfsPhaseResult
parseProfileDfsPhaseResult
(org.elasticsearch.xcontent.XContentParser parser) static ProfileResult
parseProfileResult
(org.elasticsearch.xcontent.XContentParser p) static QueryProfileShardResult
parseQueryProfileShardResult
(org.elasticsearch.xcontent.XContentParser parser) static SearchHit
parseSearchHit
(org.elasticsearch.xcontent.XContentParser parser) static SearchHits
parseSearchHits
(org.elasticsearch.xcontent.XContentParser parser) static SearchProfileResults
parseSearchProfileResults
(org.elasticsearch.xcontent.XContentParser parser) static SearchResponse
parseSearchResponse
(org.elasticsearch.xcontent.XContentParser parser) static SearchSortValues
parseSearchSortValues
(org.elasticsearch.xcontent.XContentParser parser) static ShardSearchFailure
parseShardSearchFailure
(org.elasticsearch.xcontent.XContentParser parser) static Suggest
parseSuggest
(org.elasticsearch.xcontent.XContentParser parser) this parsing method assumes that the leading "suggest" field name has already been parsed by the callerstatic Suggest.Suggestion
<? extends Suggest.Suggestion.Entry<? extends Suggest.Suggestion.Entry.Option>> parseSuggestion
(org.elasticsearch.xcontent.XContentParser parser) readAggregationProfileShardResult
(org.elasticsearch.xcontent.XContentParser parser) response()
response
(SearchHits hits) static SearchResponse
responseAsSearchResponse
(Response searchResponse) static SearchHit
searchHitFromMap
(Map<String, Object> values) static SearchResponse
successfulResponse
(SearchHits hits) static SearchResponseUtils
Returns the enum constant of this class with the specified name.static SearchResponseUtils[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Field Details
-
unknownMetaFieldConsumer
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
response
-
response
-
successfulResponse
-
emptyWithTotalHits
public static SearchResponse emptyWithTotalHits(String scrollId, int totalShards, int successfulShards, int skippedShards, long tookInMillis, ShardSearchFailure[] shardFailures, SearchResponse.Clusters clusters) -
getTotalHits
-
getTotalHitsValue
-
responseAsSearchResponse
- Throws:
IOException
-
parseSearchResponse
public static SearchResponse parseSearchResponse(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
parseMultiSearchResponse
public static MultiSearchResponse parseMultiSearchResponse(org.elasticsearch.xcontent.XContentParser parser) -
parseInnerSearchResponse
public static SearchResponse parseInnerSearchResponse(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
parseSearchProfileResults
public static SearchProfileResults parseSearchProfileResults(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
parseProfileDfsPhaseResult
public static SearchProfileDfsPhaseResult parseProfileDfsPhaseResult(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
parseQueryProfileShardResult
public static QueryProfileShardResult parseQueryProfileShardResult(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
parseSearchHits
public static SearchHits parseSearchHits(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
parseSearchHit
-
declareInnerHitsParseFields
-
parseSuggest
public static Suggest parseSuggest(org.elasticsearch.xcontent.XContentParser parser) throws IOException this parsing method assumes that the leading "suggest" field name has already been parsed by the caller- Throws:
IOException
-
parseSuggestion
public static Suggest.Suggestion<? extends Suggest.Suggestion.Entry<? extends Suggest.Suggestion.Entry.Option>> parseSuggestion(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
parseNestedIdentity
public static SearchHit.NestedIdentity parseNestedIdentity(org.elasticsearch.xcontent.XContentParser parser) -
searchHitFromMap
-
readAggregationProfileShardResult
public static AggregationProfileShardResult readAggregationProfileShardResult(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
parseCollectorResult
public static CollectorResult parseCollectorResult(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
parseHighlightField
public static HighlightField parseHighlightField(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
parseProfileResult
public static ProfileResult parseProfileResult(org.elasticsearch.xcontent.XContentParser p) throws IOException - Throws:
IOException
-
parseSearchSortValues
public static SearchSortValues parseSearchSortValues(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
parseShardSearchFailure
public static ShardSearchFailure parseShardSearchFailure(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-