Class SearchResult<TDocument>

    • Method Detail

      • took

        public final long took()
        Required - API name: took
      • timedOut

        public final boolean timedOut()
        Required - API name: timed_out
      • shards

        public final ShardStatistics shards()
        Required - API name: _shards
      • aggregations

        public final java.util.Map<java.lang.String,​Aggregate> aggregations()
        API name: aggregations
      • documents

        public final java.util.List<TDocument> documents()
        API name: documents
      • fields

        public final java.util.Map<java.lang.String,​JsonData> fields()
        API name: fields
      • maxScore

        @Nullable
        public final java.lang.Double maxScore()
        API name: max_score
      • numReducePhases

        @Nullable
        public final java.lang.Long numReducePhases()
        API name: num_reduce_phases
      • profile

        @Nullable
        public final Profile profile()
        API name: profile
      • pitId

        @Nullable
        public final java.lang.String pitId()
        API name: pit_id
      • scrollId

        @Nullable
        public final java.lang.String scrollId()
        API name: _scroll_id
      • suggest

        public final java.util.Map<java.lang.String,​java.util.List<Suggest<TDocument>>> suggest()
        API name: suggest
      • terminatedEarly

        @Nullable
        public final java.lang.Boolean terminatedEarly()
        API name: terminated_early
      • serialize

        public void serialize​(jakarta.json.stream.JsonGenerator generator,
                              JsonpMapper mapper)
        Serialize this object to JSON.
        Specified by:
        serialize in interface JsonpSerializable
      • serializeInternal

        protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator,
                                         JsonpMapper mapper)