Enum Class SearchResponseUtils

java.lang.Object
java.lang.Enum<SearchResponseUtils>
org.elasticsearch.search.SearchResponseUtils
All Implemented Interfaces:
Serializable, Comparable<SearchResponseUtils>, Constable

public enum SearchResponseUtils extends Enum<SearchResponseUtils>
  • Field Details

    • unknownMetaFieldConsumer

      public static final org.elasticsearch.xcontent.ObjectParser.UnknownFieldConsumer<Map<String,Object>> unknownMetaFieldConsumer
  • Method Details

    • values

      public static SearchResponseUtils[] 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

      public static SearchResponseUtils valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getTotalHits

      public static org.apache.lucene.search.TotalHits getTotalHits(SearchRequestBuilder request)
    • getTotalHitsValue

      public static long getTotalHitsValue(SearchRequestBuilder request)
    • responseAsSearchResponse

      public static SearchResponse responseAsSearchResponse(Response searchResponse) throws IOException
      Throws:
      IOException
    • emptyWithTotalHits

      public static SearchResponse emptyWithTotalHits(String scrollId, int totalShards, int successfulShards, int skippedShards, long tookInMillis, ShardSearchFailure[] shardFailures, SearchResponse.Clusters clusters)
    • 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

      public static SearchHit parseSearchHit(org.elasticsearch.xcontent.XContentParser parser)
    • declareInnerHitsParseFields

      public static void declareInnerHitsParseFields(org.elasticsearch.xcontent.ObjectParser<Map<String,Object>,Void> parser)
    • 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

      public static SearchHit searchHitFromMap(Map<String,Object> values)