Class RecommendationsResponse

java.lang.Object
com.algolia.model.recommend.RecommendationsResponse

public class RecommendationsResponse extends Object
RecommendationsResponse
  • Constructor Details

    • RecommendationsResponse

      public RecommendationsResponse()
  • Method Details

    • setAbTestID

      public RecommendationsResponse 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.
      Returns:
      abTestID
    • setAbTestVariantID

      public RecommendationsResponse 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
      Returns:
      abTestVariantID
    • setAroundLatLng

      public RecommendationsResponse setAroundLatLng(String aroundLatLng)
    • getAroundLatLng

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

      public RecommendationsResponse setAutomaticRadius(String automaticRadius)
    • getAutomaticRadius

      @Nullable public String getAutomaticRadius()
      Automatically-computed radius.
      Returns:
      automaticRadius
    • setExhaustiveFacetsCount

      public RecommendationsResponse setExhaustiveFacetsCount(Boolean exhaustiveFacetsCount)
    • getExhaustiveFacetsCount

      @Nullable public Boolean getExhaustiveFacetsCount()
      Indicates whether the facet count is exhaustive (exact) or approximate.
      Returns:
      exhaustiveFacetsCount
    • setExhaustiveNbHits

      public RecommendationsResponse setExhaustiveNbHits(Boolean exhaustiveNbHits)
    • getExhaustiveNbHits

      @Nonnull public Boolean getExhaustiveNbHits()
      Indicates whether the number of hits `nbHits` is exhaustive (exact) or approximate.
      Returns:
      exhaustiveNbHits
    • setExhaustiveTypo

      public RecommendationsResponse setExhaustiveTypo(Boolean exhaustiveTypo)
    • getExhaustiveTypo

      @Nullable public Boolean getExhaustiveTypo()
      Indicates whether the search for typos was exhaustive (exact) or approximate.
      Returns:
      exhaustiveTypo
    • setFacets

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

      public RecommendationsResponse 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.
      Returns:
      facets
    • setFacetsStats

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

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

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

      public RecommendationsResponse setHitsPerPage(Integer hitsPerPage)
    • getHitsPerPage

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

      public RecommendationsResponse setIndex(String index)
    • getIndex

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

      public RecommendationsResponse 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.
      Returns:
      indexUsed
    • setMessage

      public RecommendationsResponse setMessage(String message)
    • getMessage

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

      public RecommendationsResponse setNbHits(Integer nbHits)
    • getNbHits

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

      public RecommendationsResponse setNbPages(Integer nbPages)
    • getNbPages

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

      public RecommendationsResponse setNbSortedHits(Integer nbSortedHits)
    • getNbSortedHits

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

      public RecommendationsResponse setPage(Integer page)
    • getPage

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

      public RecommendationsResponse setRedirect(BaseSearchResponseRedirect redirect)
    • getRedirect

      @Nullable public BaseSearchResponseRedirect getRedirect()
      Get redirect
      Returns:
      redirect
    • setParsedQuery

      public RecommendationsResponse 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.
      Returns:
      parsedQuery
    • setProcessingTimeMS

      public RecommendationsResponse setProcessingTimeMS(Integer processingTimeMS)
    • getProcessingTimeMS

      @Nonnull public Integer getProcessingTimeMS()
      Time the server took to process the request, in milliseconds.
      Returns:
      processingTimeMS
    • setQueryAfterRemoval

      public RecommendationsResponse 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.
      Returns:
      queryAfterRemoval
    • setServerUsed

      public RecommendationsResponse setServerUsed(String serverUsed)
    • getServerUsed

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

      public RecommendationsResponse setUserData(Object userData)
    • getUserData

      @Nullable public Object getUserData()
      Lets you store custom data in your indices.
      Returns:
      userData
    • setRenderingContent

      public RecommendationsResponse setRenderingContent(RenderingContent renderingContent)
    • getRenderingContent

      @Nullable public RenderingContent getRenderingContent()
      Get renderingContent
      Returns:
      renderingContent
    • setHits

      public RecommendationsResponse setHits(List<RecommendHit> hits)
    • addHits

      public RecommendationsResponse addHits(RecommendHit hitsItem)
    • getHits

      @Nonnull public List<RecommendHit> getHits()
      Get hits
      Returns:
      hits
    • setQuery

      public RecommendationsResponse setQuery(String query)
    • getQuery

      @Nullable public String getQuery()
      Text to search for in an index.
      Returns:
      query
    • setParams

      public RecommendationsResponse setParams(String params)
    • getParams

      @Nullable public String getParams()
      URL-encoded string of all search parameters.
      Returns:
      params
    • 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