Class SearchPagedIterable

java.lang.Object
com.azure.core.util.IterableStream<SearchResult>
com.azure.core.util.paging.ContinuablePagedIterable<String, SearchResult, SearchPagedResponse>
com.azure.core.http.rest.PagedIterableBase<SearchResult, SearchPagedResponse>
com.azure.search.documents.util.SearchPagedIterable
All Implemented Interfaces:
Iterable<SearchResult>

public final class SearchPagedIterable extends com.azure.core.http.rest.PagedIterableBase<SearchResult, SearchPagedResponse>
Implementation of ContinuablePagedIterable where the continuation token type is SearchRequest, the element type is SearchResult, and the page type is SearchPagedResponse.
  • Constructor Details

  • Method Details

    • getCoverage

      @Deprecated public Double getCoverage()
      Deprecated.
      Use SearchPagedResponse.getCoverage() when consuming ContinuablePagedIterable.streamByPage() or ContinuablePagedIterable.iterableByPage().
      The percentage of the index covered in the search request.

      If minimumCoverage wasn't supplied in the request this will be null.

      Returns:
      The percentage of the index covered in the search request if minimumCoverage was set in the request, otherwise null.
    • getFacets

      @Deprecated public Map<String, List<FacetResult>> getFacets()
      Deprecated.
      Use SearchPagedResponse.getFacets() when consuming ContinuablePagedIterable.streamByPage() or ContinuablePagedIterable.iterableByPage().
      The facet query results based on the search request.

      If facets weren't supplied in the request this will be null.

      Returns:
      The facet query results if facets were supplied in the request, otherwise null.
    • getTotalCount

      @Deprecated public Long getTotalCount()
      Deprecated.
      Use SearchPagedResponse.getCount() when consuming ContinuablePagedIterable.streamByPage() or ContinuablePagedIterable.iterableByPage().
      The approximate number of documents that matched the search and filter parameters in the request.

      If count is set to false in the request this will be null.

      Returns:
      The approximate number of documents that match the request if count is true, otherwise null.
    • getSemanticResults

      @Deprecated public SemanticSearchResults getSemanticResults()
      Deprecated.
      Use SearchPagedResponse.getSemanticResults() when consuming ContinuablePagedIterable.streamByPage() or ContinuablePagedIterable.iterableByPage().
      The semantic search results based on the search request.

      If semantic search wasn't requested this will return a SemanticSearchResults with no values.

      Returns:
      The semantic search results if semantic search was requested, otherwise an empty SemanticSearchResults.
    • getDebugInfo

      @Deprecated public DebugInfo getDebugInfo()
      Deprecated.
      Use SearchPagedResponse.getDebugInfo() when consuming ContinuablePagedIterable.streamByPage() or ContinuablePagedIterable.iterableByPage().
      The debug information that can be used to further explore your search results.
      Returns:
      The debug information that can be used to further explore your search results.