Package 

Class AsyncSearchResults

    • Constructor Summary

      Constructors 
      Constructor Description
      AsyncSearchResults(RestHighLevelClient client, ModelReaderAndWriter<T> modelReaderAndWriter, Long scrollTtlInMinutes, SearchResponse firstResponse, RequestOptions defaultRequestOptions)
    • Method Summary

      Modifier and Type Method Description
      final Flow<SearchResponse> rawResponses()
      final TotalHits getTotalHits()
      final Long getTotal()
      final TotalHits.Relation getTotalRelation()
      final Flow<SearchHit> getSearchHits()
      final Flow<Pair<SearchHit, T>> getHits() A Flow of pairs of SearchHits and the deserialized T as a Flow.
      final Flow<T> getMappedHits() A Flow of T.
      • Methods inherited from class com.jillesvangurp.eskotlinwrapper.AsyncSearchResults

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AsyncSearchResults

        AsyncSearchResults(RestHighLevelClient client, ModelReaderAndWriter<T> modelReaderAndWriter, Long scrollTtlInMinutes, SearchResponse firstResponse, RequestOptions defaultRequestOptions)
    • Method Detail

      • getHits

         final Flow<Pair<SearchHit, T>> getHits()

        A Flow of pairs of SearchHits and the deserialized T as a Flow. Use this if you need both.

      • getMappedHits

         final Flow<T> getMappedHits()

        A Flow of T. Use this if you don't need the underlying SearchHit.