Class BaseSearchResponse

java.lang.Object
com.algolia.model.search.BaseSearchResponse

public class BaseSearchResponse extends Object
BaseSearchResponse
  • Constructor Details

    • BaseSearchResponse

      public BaseSearchResponse()
  • Method Details

    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • setAdditionalProperty

      public BaseSearchResponse setAdditionalProperty(String name, Object value)
    • setAbTestID

      public BaseSearchResponse setAbTestID(Integer abTestID)
    • getAbTestID

      @Nullable public Integer getAbTestID()
      A/B test ID. This is only included in the response for indices that are part of an A/B test.
    • setAbTestVariantID

      public BaseSearchResponse setAbTestVariantID(Integer abTestVariantID)
    • getAbTestVariantID

      @Nullable public Integer getAbTestVariantID()
      Variant ID. This is only included in the response for indices that are part of an A/B test. minimum: 1
    • setAroundLatLng

      public BaseSearchResponse setAroundLatLng(String aroundLatLng)
    • getAroundLatLng

      @Nullable public String getAroundLatLng()
      Computed geographical location.
    • setAutomaticRadius

      public BaseSearchResponse setAutomaticRadius(String automaticRadius)
    • getAutomaticRadius

      @Nullable public String getAutomaticRadius()
      Automatically-computed radius.
    • setExhaustive

      public BaseSearchResponse setExhaustive(Exhaustive exhaustive)
    • getExhaustive

      @Nullable public Exhaustive getExhaustive()
      Get exhaustive
    • setExhaustiveFacetsCount

      public BaseSearchResponse setExhaustiveFacetsCount(Boolean exhaustiveFacetsCount)
    • getExhaustiveFacetsCount

      @Deprecated @Nullable public Boolean getExhaustiveFacetsCount()
      Deprecated.
      See the `facetsCount` field of the `exhaustive` object in the response.
    • setExhaustiveNbHits

      public BaseSearchResponse setExhaustiveNbHits(Boolean exhaustiveNbHits)
    • getExhaustiveNbHits

      @Deprecated @Nullable public Boolean getExhaustiveNbHits()
      Deprecated.
      See the `nbHits` field of the `exhaustive` object in the response.
    • setExhaustiveTypo

      public BaseSearchResponse setExhaustiveTypo(Boolean exhaustiveTypo)
    • getExhaustiveTypo

      @Deprecated @Nullable public Boolean getExhaustiveTypo()
      Deprecated.
      See the `typo` field of the `exhaustive` object in the response.
    • setFacets

      public BaseSearchResponse setFacets(Map<String,Map<String,Integer>> facets)
    • putFacets

      public BaseSearchResponse putFacets(String key, Map<String,Integer> facetsItem)
    • getFacets

      @Nullable public Map<String,Map<String,Integer>> getFacets()
      Mapping of each facet name to the corresponding facet counts.
    • setFacetsStats

      public BaseSearchResponse setFacetsStats(Map<String,FacetsStats> facetsStats)
    • putFacetsStats

      public BaseSearchResponse putFacetsStats(String key, FacetsStats facetsStatsItem)
    • getFacetsStats

      @Nullable public Map<String,FacetsStats> getFacetsStats()
      Statistics for numerical facets.
    • setHitsPerPage

      public BaseSearchResponse setHitsPerPage(Integer hitsPerPage)
    • getHitsPerPage

      @Nonnull public Integer getHitsPerPage()
      Number of hits per page. minimum: 1 maximum: 1000
    • setIndex

      public BaseSearchResponse setIndex(String index)
    • getIndex

      @Nullable public String getIndex()
      Index name used for the query.
    • setIndexUsed

      public BaseSearchResponse setIndexUsed(String indexUsed)
    • getIndexUsed

      @Nullable public String getIndexUsed()
      Index name used for the query. During A/B testing, the targeted index isn't always the index used by the query.
    • setMessage

      public BaseSearchResponse setMessage(String message)
    • getMessage

      @Nullable public String getMessage()
      Warnings about the query.
    • setNbHits

      public BaseSearchResponse setNbHits(Integer nbHits)
    • getNbHits

      @Nonnull public Integer getNbHits()
      Number of hits the search query matched.
    • setNbPages

      public BaseSearchResponse setNbPages(Integer nbPages)
    • getNbPages

      @Nonnull public Integer getNbPages()
      Number of pages of results for the current query.
    • setNbSortedHits

      public BaseSearchResponse setNbSortedHits(Integer nbSortedHits)
    • getNbSortedHits

      @Nullable public Integer getNbSortedHits()
      Number of hits selected and sorted by the relevant sort algorithm.
    • setPage

      public BaseSearchResponse setPage(Integer page)
    • getPage

      @Nonnull public Integer getPage()
      Page to retrieve (the first page is `0`, not `1`).
    • setParsedQuery

      public BaseSearchResponse setParsedQuery(String parsedQuery)
    • getParsedQuery

      @Nullable public String getParsedQuery()
      Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.
    • setProcessingTimeMS

      public BaseSearchResponse setProcessingTimeMS(Integer processingTimeMS)
    • getProcessingTimeMS

      @Nonnull public Integer getProcessingTimeMS()
      Time the server took to process the request, in milliseconds.
    • setProcessingTimingsMS

      public BaseSearchResponse setProcessingTimingsMS(Object processingTimingsMS)
    • getProcessingTimingsMS

      @Nullable public Object getProcessingTimingsMS()
      Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
    • setQueryAfterRemoval

      public BaseSearchResponse setQueryAfterRemoval(String queryAfterRemoval)
    • getQueryAfterRemoval

      @Nullable public String getQueryAfterRemoval()
      Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set.
    • setRedirect

      public BaseSearchResponse setRedirect(Redirect redirect)
    • getRedirect

      @Nullable public Redirect getRedirect()
      Get redirect
    • setRenderingContent

      public BaseSearchResponse setRenderingContent(RenderingContent renderingContent)
    • getRenderingContent

      @Nullable public RenderingContent getRenderingContent()
      Get renderingContent
    • setServerTimeMS

      public BaseSearchResponse setServerTimeMS(Integer serverTimeMS)
    • getServerTimeMS

      @Nullable public Integer getServerTimeMS()
      Time the server took to process the request, in milliseconds.
    • setServerUsed

      public BaseSearchResponse setServerUsed(String serverUsed)
    • getServerUsed

      @Nullable public String getServerUsed()
      Host name of the server that processed the request.
    • setUserData

      public BaseSearchResponse setUserData(Object userData)
    • getUserData

      @Nullable public Object getUserData()
      Lets you store custom data in your indices.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object