Package com.algolia.model.recommend
Class BaseSearchParamsWithoutQuery
java.lang.Object
com.algolia.model.recommend.BaseSearchParamsWithoutQuery
BaseSearchParamsWithoutQuery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnalyticsTags
(String analyticsTagsItem) addExplain
(String explainItem) addInsideBoundingBox
(List<Double> insideBoundingBoxItem) addInsidePolygon
(List<Double> insidePolygonItem) addNaturalLanguages
(String naturalLanguagesItem) addRestrictSearchableAttributes
(String restrictSearchableAttributesItem) addRuleContexts
(String ruleContextsItem) boolean
Indicates whether this query will be included in [analytics](https://www.algolia.com/doc/guides/search-analytics/guides/exclude-queries/).Tags to apply to the query for [segmenting analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/).Search for entries [around a central location](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filter-around-a-central-point), enabling a geographical search within a circular area.Search for entries around a location.Get aroundPrecisionGet aroundRadiusIndicates whether a query ID parameter is included in the search response.Incidates whether this search will be considered in A/B testing.Enriches the API's response with information about how the query was processed.Get facetFiltersForces faceting to be applied after [de-duplication](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/) (with the distinct feature).Returns [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts), their facet values, and the number of matching facet values.[Filter](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) the query with numeric, facet, or tag filters.Incidates whether the search response includes [detailed ranking information](https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/understanding-the-api-response/#ranking-information).Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).Sets the number of hits to retrieve (for use with `offset`).Minimum radius (in meters) used for a geographical search when `aroundRadius` isn't set.Changes the default values of parameters that work best for a natural language query, such as `ignorePlurals`, `removeStopWords`, `removeWordsIfNoResults`, `analyticsTags`, and `ruleContexts`.Get numericFiltersSpecifies the offset of the first hit to return.Get optionalFiltersgetPage()
Page to retrieve (the first page is `0`, not `1`).Whether to include or exclude a query from the processing-time percentile computation.Defines how much [Personalization affects results](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).Restricts a query to only look at a subset of your [searchable attributes](https://www.algolia.com/doc/guides/managing-results/must-do/searchable-attributes/).Assigns [rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) to search queries.Overrides the query parameter and performs a more generic search.Determines how to calculate [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores).Whether to take into account an index's synonyms for a particular search.Get tagFiltersAssociates a [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/) with the current search.int
hashCode()
setAnalytics
(Boolean analytics) setAnalyticsTags
(List<String> analyticsTags) setAroundLatLng
(String aroundLatLng) setAroundLatLngViaIP
(Boolean aroundLatLngViaIP) setAroundPrecision
(AroundPrecision aroundPrecision) setAroundRadius
(AroundRadius aroundRadius) setClickAnalytics
(Boolean clickAnalytics) setEnableABTest
(Boolean enableABTest) setExplain
(List<String> explain) setFacetFilters
(FacetFilters facetFilters) setFacetingAfterDistinct
(Boolean facetingAfterDistinct) setFilters
(String filters) setGetRankingInfo
(Boolean getRankingInfo) setInsideBoundingBox
(List<List<Double>> insideBoundingBox) setInsidePolygon
(List<List<Double>> insidePolygon) setMinimumAroundRadius
(Integer minimumAroundRadius) setNaturalLanguages
(List<String> naturalLanguages) setNumericFilters
(NumericFilters numericFilters) setOptionalFilters
(OptionalFilters optionalFilters) setPercentileComputation
(Boolean percentileComputation) setPersonalizationImpact
(Integer personalizationImpact) setRestrictSearchableAttributes
(List<String> restrictSearchableAttributes) setRuleContexts
(List<String> ruleContexts) setSimilarQuery
(String similarQuery) setSumOrFiltersScores
(Boolean sumOrFiltersScores) setSynonyms
(Boolean synonyms) setTagFilters
(TagFilters tagFilters) setUserToken
(String userToken) toString()
-
Constructor Details
-
BaseSearchParamsWithoutQuery
public BaseSearchParamsWithoutQuery()
-
-
Method Details
-
setSimilarQuery
-
getSimilarQuery
Overrides the query parameter and performs a more generic search. -
setFilters
-
getFilters
[Filter](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) the query with numeric, facet, or tag filters. -
setFacetFilters
-
getFacetFilters
Get facetFilters -
setOptionalFilters
-
getOptionalFilters
Get optionalFilters -
setNumericFilters
-
getNumericFilters
Get numericFilters -
setTagFilters
-
getTagFilters
Get tagFilters -
setSumOrFiltersScores
-
getSumOrFiltersScores
Determines how to calculate [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores). If `false`, maximum score is kept. If `true`, score is summed. -
setRestrictSearchableAttributes
public BaseSearchParamsWithoutQuery setRestrictSearchableAttributes(List<String> restrictSearchableAttributes) -
addRestrictSearchableAttributes
public BaseSearchParamsWithoutQuery addRestrictSearchableAttributes(String restrictSearchableAttributesItem) -
getRestrictSearchableAttributes
Restricts a query to only look at a subset of your [searchable attributes](https://www.algolia.com/doc/guides/managing-results/must-do/searchable-attributes/). -
setFacets
-
addFacets
-
getFacets
Returns [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts), their facet values, and the number of matching facet values. -
setFacetingAfterDistinct
-
getFacetingAfterDistinct
Forces faceting to be applied after [de-duplication](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/) (with the distinct feature). Alternatively, the `afterDistinct` [modifier](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) of `attributesForFaceting` allows for more granular control. -
setPage
-
getPage
Page to retrieve (the first page is `0`, not `1`). -
setOffset
-
getOffset
Specifies the offset of the first hit to return. > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length). -
setLength
-
getLength
Sets the number of hits to retrieve (for use with `offset`). > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length). minimum: 1 maximum: 1000 -
setAroundLatLng
-
getAroundLatLng
Search for entries [around a central location](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filter-around-a-central-point), enabling a geographical search within a circular area. -
setAroundLatLngViaIP
-
getAroundLatLngViaIP
Search for entries around a location. The location is automatically computed from the requester's IP address. -
setAroundRadius
-
getAroundRadius
Get aroundRadius -
setAroundPrecision
-
getAroundPrecision
Get aroundPrecision -
setMinimumAroundRadius
-
getMinimumAroundRadius
Minimum radius (in meters) used for a geographical search when `aroundRadius` isn't set. minimum: 1 -
setInsideBoundingBox
-
addInsideBoundingBox
-
getInsideBoundingBox
Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates). -
setInsidePolygon
-
addInsidePolygon
-
getInsidePolygon
Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates). -
setNaturalLanguages
-
addNaturalLanguages
-
getNaturalLanguages
Changes the default values of parameters that work best for a natural language query, such as `ignorePlurals`, `removeStopWords`, `removeWordsIfNoResults`, `analyticsTags`, and `ruleContexts`. These parameters work well together when the query consists of fuller natural language strings instead of keywords, for example when processing voice search queries. -
setRuleContexts
-
addRuleContexts
-
getRuleContexts
Assigns [rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) to search queries. -
setPersonalizationImpact
-
getPersonalizationImpact
Defines how much [Personalization affects results](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact). -
setUserToken
-
getUserToken
Associates a [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/) with the current search. -
setGetRankingInfo
-
getGetRankingInfo
Incidates whether the search response includes [detailed ranking information](https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/understanding-the-api-response/#ranking-information). -
setExplain
-
addExplain
-
getExplain
Enriches the API's response with information about how the query was processed. -
setSynonyms
-
getSynonyms
Whether to take into account an index's synonyms for a particular search. -
setClickAnalytics
-
getClickAnalytics
Indicates whether a query ID parameter is included in the search response. This is required for [tracking click and conversion events](https://www.algolia.com/doc/guides/sending-events/concepts/event-types/#events-related-to-algolia-requests). -
setAnalytics
-
getAnalytics
Indicates whether this query will be included in [analytics](https://www.algolia.com/doc/guides/search-analytics/guides/exclude-queries/). -
setAnalyticsTags
-
addAnalyticsTags
-
getAnalyticsTags
Tags to apply to the query for [segmenting analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/). -
setPercentileComputation
-
getPercentileComputation
Whether to include or exclude a query from the processing-time percentile computation. -
setEnableABTest
-
getEnableABTest
Incidates whether this search will be considered in A/B testing. -
equals
-
hashCode
public int hashCode() -
toString
-