algoliasearch.recommend
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ExactPhraseobject ExcludeWords
AdvancedSyntaxFeatures enumeration
AdvancedSyntaxFeatures enumeration
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class CustomSerializer[AdvancedSyntaxFeatures]trait Serializer[AdvancedSyntaxFeatures]class Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
AlternativesAsExact enumeration
AlternativesAsExact enumeration
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
AlternativesAsExact.type
Attributes
- Supertypes
-
class CustomSerializer[AlternativesAsExact]trait Serializer[AlternativesAsExact]class Objecttrait Matchableclass Any
Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class IntValueclass SeqOfRange
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
AroundPrecision.type
Attributes
- Supertypes
- Self type
Maximum radius for a search around a central location. This parameter works in combination with the aroundLatLng
and aroundLatLngViaIP
parameters. By default, the search radius is determined automatically from the density of hits around the central location. The search radius is small if there are many hits close to the central coordinates.
Maximum radius for a search around a central location. This parameter works in combination with the aroundLatLng
and aroundLatLngViaIP
parameters. By default, the search radius is determined automatically from the density of hits around the central location. The search radius is small if there are many hits close to the central coordinates.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AroundRadius.type
Attributes
Return all records with a valid _geoloc
attribute. Don't filter by distance.
Return all records with a valid _geoloc
attribute. Don't filter by distance.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
AroundRadiusAll.type
Attributes
- Supertypes
-
class CustomSerializer[AroundRadiusAll]trait Serializer[AroundRadiusAll]class Objecttrait Matchableclass Any
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Known subtypes
-
trait AroundRadiusAllobject All
Facet attribute. Only recommendations with the same value (or only recommendations with a different value) as the original viewed item are included.
Facet attribute. Only recommendations with the same value (or only recommendations with a different value) as the original viewed item are included.
Value parameters
- facet
-
Facet attribute.
- negative
-
Whether the filter is negative. If true, recommendations must not have the same value for the
facet
attribute. If false, recommendations must have the same value for thefacet
attribute.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
a search banner with image and url.
a search banner with image and url.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
image of a search banner.
image of a search banner.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
url for a search banner image.
url for a search banner image.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
link for a banner defined in merchandising studio.
link for a banner defined in merchandising studio.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
BaseIndexSettings
BaseIndexSettings
Value parameters
- allowCompressionOfIntegerArray
-
Whether arrays with exclusively non-negative integers should be compressed for better performance. If true, the compressed arrays may be reordered.
- attributeForDistinct
-
Attribute that should be used to establish groups of results. Attribute names are case-sensitive. All records with the same value for this attribute are considered a group. You can combine
attributeForDistinct
with thedistinct
search parameter to control how many items per group are included in the search results. If you want to use the same attribute also for faceting, use theafterDistinct
modifier of theattributesForFaceting
setting. This applies faceting after deduplication, which will result in accurate facet counts. - attributesForFaceting
-
Attributes used for faceting. Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. Modifiers -
filterOnly(\"ATTRIBUTE\")
. Allows the attribute to be used as a filter but doesn't evaluate the facet values. -searchable(\"ATTRIBUTE\")
. Allows searching for facet values. -afterDistinct(\"ATTRIBUTE\")
. Evaluates the facet count after deduplication withdistinct
. This ensures accurate facet counts. You can apply this modifier to searchable facets:afterDistinct(searchable(ATTRIBUTE))
. - attributesToTransliterate
-
Attributes, for which you want to support Japanese transliteration. Transliteration supports searching in any of the Japanese writing systems. To support transliteration, you must set the indexing language to Japanese. Attribute names are case-sensitive.
- camelCaseAttributes
-
Attributes for which to split camel case words. Attribute names are case-sensitive.
- customNormalization
-
Characters and their normalized replacements. This overrides Algolia's default normalization.
- decompoundedAttributes
-
Searchable attributes to which Algolia should apply word segmentation (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, "firefighter". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (
nl
), German (de
), Finnish (fi
), Danish (da
), Swedish (sv
), and Norwegian (no
). Decompounding doesn't work for words with non-spacing mark Unicode characters. For example,Gartenstühle
won't be decompounded if theü
consists ofu
(U+0075) and◌̈
(U+0308). - disablePrefixOnAttributes
-
Searchable attributes for which you want to turn off prefix matching. Attribute names are case-sensitive.
- disableTypoToleranceOnWords
-
Creates a list of words which require exact matches. This also turns off word splitting and concatenation for the specified words.
- indexLanguages
-
Languages for language-specific processing steps, such as word detection and dictionary settings. You should always specify an indexing language. If you don't specify an indexing language, the search engine uses all supported languages, or the languages you specified with the
ignorePlurals
orremoveStopWords
parameters. This can lead to unexpected search results. For more information, see Language-specific configuration. - numericAttributesForFiltering
-
Numeric attributes that can be used as numerical filters. Attribute names are case-sensitive. By default, all numeric attributes are available as numerical filters. For faster indexing, reduce the number of numeric attributes. To turn off filtering for all numeric attributes, specify an attribute that doesn't exist in your index, such as
NO_NUMERIC_FILTERING
. Modifier -equalOnly(\"ATTRIBUTE\")
. Support only filtering based on equality comparisons=
and!=
. - paginationLimitedTo
-
Maximum number of search results that can be obtained through pagination. Higher pagination limits might slow down your search. For pagination limits above 1,000, the sorting of results beyond the 1,000th hit can't be guaranteed.
- replicas
-
Creates replica indices. Replicas are copies of a primary index with the same records but different settings, synonyms, or rules. If you want to offer a different ranking or sorting of your search results, you'll use replica indices. All index operations on a primary index are automatically forwarded to its replicas. To add a replica index, you must provide the complete set of replicas to this parameter. If you omit a replica from this list, the replica turns into a regular, standalone index that will no longer be synced with the primary index. Modifier -
virtual(\"REPLICA\")
. Create a virtual replica, Virtual replicas don't increase the number of records and are optimized for Relevant sorting. - searchableAttributes
-
Attributes used for searching. Attribute names are case-sensitive. By default, all attributes are searchable and the Attribute ranking criterion is turned off. With a non-empty list, Algolia only returns results with matches in the selected attributes. In addition, the Attribute ranking criterion is turned on: matches in attributes that are higher in the list of
searchableAttributes
rank first. To make matches in two attributes rank equally, include them in a comma-separated string, such as\"title,alternate_title\"
. Attributes with the same priority are always unordered. For more information, see Searchable attributes. Modifier -unordered(\"ATTRIBUTE\")
. Ignore the position of a match within the attribute. Without a modifier, matches at the beginning of an attribute rank higher than matches at the end. - separatorsToIndex
-
Control which non-alphanumeric characters are indexed. By default, Algolia ignores non-alphanumeric characters like hyphen (
-
), plus (+
), and parentheses ((
,)
). To include such characters, define them withseparatorsToIndex
. Separators are all non-letter characters except spaces and currency characters, such as $€£¥. WithseparatorsToIndex
, Algolia treats separator characters as separate words. For example, in a search for "Disney+", Algolia considers "Disney" and "+" as two separate words. - unretrievableAttributes
-
Attributes that can't be retrieved at query time. This can be useful if you want to use an attribute for ranking or to restrict access, but don't want to include it in the search results. Attribute names are case-sensitive.
- userData
-
An object with custom data. You can store up to 32kB as custom data.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
BaseRecommendIndexSettings
BaseRecommendIndexSettings
Value parameters
- advancedSyntax
-
Whether to support phrase matching and excluding words from search queries. Use the
advancedSyntaxFeatures
parameter to control which feature is supported. - advancedSyntaxFeatures
-
Advanced search syntax features you want to support. -
exactPhrase
. Phrases in quotes must match exactly. For example,sparkly blue \"iPhone case\"
only returns records with the exact string "iPhone case". -excludeWords
. Query words prefixed with a-
must not occur in a record. For example,search -engine
matches records that contain "search" but not "engine". This setting only has an effect ifadvancedSyntax
is true. - allowTyposOnNumericTokens
-
Whether to allow typos on numbers in the search query. Turn off this setting to reduce the number of irrelevant matches when searching in large sets of similar numbers.
- alternativesAsExact
-
Determine which plurals and synonyms should be considered an exact matches. By default, Algolia treats singular and plural forms of a word, and single-word synonyms, as exact matches when searching. For example: - "swimsuit" and "swimsuits" are treated the same - "swimsuit" and "swimwear" are treated the same (if they are synonyms). -
ignorePlurals
. Plurals and similar declensions added by theignorePlurals
setting are considered exact matches. -singleWordSynonym
. Single-word synonyms, such as "NY" = "NYC", are considered exact matches. -multiWordsSynonym
. Multi-word synonyms, such as "NY" = "New York", are considered exact matches. - attributeCriteriaComputedByMinProximity
-
Whether the best matching attribute should be determined by minimum proximity. This setting only affects ranking if the Attribute ranking criterion comes before Proximity in the
ranking
setting. If true, the best matching attribute is selected based on the minimum proximity of multiple matches. Otherwise, the best matching attribute is determined by the order in thesearchableAttributes
setting. - attributesToHighlight
-
Attributes to highlight. By default, all searchable attributes are highlighted. Use
*
to highlight all attributes or use an empty array[]
to turn off highlighting. Attribute names are case-sensitive. With highlighting, strings that match the search query are surrounded by HTML tags defined byhighlightPreTag
andhighlightPostTag
. You can use this to visually highlight matching parts of a search query in your UI. For more information, see Highlighting and snippeting. - attributesToRetrieve
-
Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. -
*
retrieves all attributes, except attributes included in thecustomRanking
andunretrievableAttributes
settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the*
:[\"*\", \"-ATTRIBUTE\"]
. - TheobjectID
attribute is always included. - attributesToSnippet
-
Attributes for which to enable snippets. Attribute names are case-sensitive. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation:
ATTRIBUTE:NUMBER
, whereNUMBER
is the number of words to be extracted. - decompoundQuery
-
Whether to split compound words in the query into their building blocks. For more information, see Word segmentation. Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn't work for words with non-spacing mark Unicode characters. For example,
Gartenstühle
won't be decompounded if theü
consists ofu
(U+0075) and◌̈
(U+0308). - disableExactOnAttributes
-
Searchable attributes for which you want to turn off the Exact ranking criterion. Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelihood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
- disableTypoToleranceOnAttributes
-
Attributes for which you want to turn off typo tolerance. Attribute names are case-sensitive. Returning only exact matches can help when: - Searching in hyphenated attributes. - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as
disableTypoToleranceOnWords
or adding synonyms if your attributes have intentional unusual spellings that might look like typos. - enablePersonalization
-
Whether to enable Personalization.
- enableReRanking
-
Whether this search will use Dynamic Re-Ranking. This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard.
- enableRules
-
Whether to enable rules.
- highlightPostTag
-
HTML tag to insert after the highlighted parts in all highlighted results and snippets.
- highlightPreTag
-
HTML tag to insert before the highlighted parts in all highlighted results and snippets.
- maxFacetHits
-
Maximum number of facet values to return when searching for facet values.
- maxValuesPerFacet
-
Maximum number of facet values to return for each facet.
- minProximity
-
Minimum proximity score for two matching words. This adjusts the Proximity ranking criterion by equally scoring matches that are farther apart. For example, if
minProximity
is 2, neighboring matches and matches with one word between them would have the same score. - minWordSizefor1Typo
-
Minimum number of characters a word in the search query must contain to accept matches with one typo.
- minWordSizefor2Typos
-
Minimum number of characters a word in the search query must contain to accept matches with two typos.
- optionalWords
-
Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn't include the optional words. For example, if the search query is "action video" and "video" is an optional word, the search engine runs two queries. One for "action video" and one for "action". Records that match all words are ranked higher. For a search query with 4 or more words and all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If
optionalWords
has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - IfoptionalWords
has 10 or more words, the number of required matched words increases by the number of optional words divided by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. For more information, see Optional words. - queryLanguages
-
Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the
removeStopWords
andignorePlurals
settings. This setting also sets a dictionary for word detection in the logogram-based CJK languages. To support this, you must place the CJK language first. You should always specify a query language. If you don't specify an indexing language, the search engine uses all supported languages, or the languages you specified with theignorePlurals
orremoveStopWords
parameters. This can lead to unexpected search results. For more information, see Language-specific configuration. - ranking
-
Determines the order in which Algolia returns your results. By default, each entry corresponds to a ranking criteria. The tie-breaking algorithm sequentially applies each criterion in the order they're specified. If you configure a replica index for sorting by an attribute, you put the sorting attribute at the top of the list. Modifiers -
asc(\"ATTRIBUTE\")
. Sort the index by the values of an attribute, in ascending order. -desc(\"ATTRIBUTE\")
. Sort the index by the values of an attribute, in descending order. Before you modify the default setting, you should test your changes in the dashboard, and by A/B testing. - relevancyStrictness
-
Relevancy threshold below which less relevant results aren't included in the results. You can only set
relevancyStrictness
on virtual replica indices. Use this setting to strike a balance between the relevance and number of returned results. - replaceSynonymsInHighlight
-
Whether to replace a highlighted word with the matched synonym. By default, the original words are highlighted even if a synonym matches. For example, with
home
as a synonym forhouse
and a search forhome
, records matching either "home" or "house" are included in the search results, and either "home" or "house" are highlighted. WithreplaceSynonymsInHighlight
set totrue
, a search forhome
still matches the same records, but all occurrences of "house" are replaced by "home" in the highlighted response. - responseFields
-
Properties to include in the API response of
search
andbrowse
requests. By default, all response properties are included. To reduce the response size, you can select, which attributes should be included. You can't exclude these properties:message
,warning
,cursor
,serverUsed
,indexUsed
,abTestVariantID
,parsedQuery
, or any property triggered by thegetRankingInfo
parameter. Don't exclude properties that you might need in your search UI. - restrictHighlightAndSnippetArrays
-
Whether to restrict highlighting and snippeting to items that at least partially matched the search query. By default, all items are highlighted and snippeted.
- snippetEllipsisText
-
String used as an ellipsis indicator when a snippet is truncated.
- sortFacetValuesBy
-
Order in which to retrieve facet values. -
count
. Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. -alpha
. Retrieve facet values alphabetically. This setting doesn't influence how facet values are displayed in your UI (seerenderingContent
). For more information, see facet value display.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
BaseRecommendRequest
BaseRecommendRequest
Value parameters
- indexName
-
Index name (case-sensitive).
- maxRecommendations
-
Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
- threshold
-
Minimum score a recommendation must have to be included in the response.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
BaseRecommendSearchParams
BaseRecommendSearchParams
Value parameters
- analytics
-
Whether this search will be included in Analytics.
- analyticsTags
-
Tags to apply to the query for segmenting analytics data.
- aroundLatLng
-
Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within a circle around this central location are included in the results. The radius of the circle is determined by the
aroundRadius
andminimumAroundRadius
settings. This parameter is ignored if you also specifyinsidePolygon
orinsideBoundingBox
. - aroundLatLngViaIP
-
Whether to obtain the coordinates from the request's IP address.
- clickAnalytics
-
Whether to include a
queryID
attribute in the response. The query ID is a unique identifier for a search query and is required for tracking click and conversion events. - enableABTest
-
Whether to enable A/B testing for this search.
- facetingAfterDistinct
-
Whether faceting should be applied after deduplication with
distinct
. This leads to accurate facet counts when using faceting in combination withdistinct
. It's usually better to useafterDistinct
modifiers in theattributesForFaceting
setting, asfacetingAfterDistinct
only computes correct facet counts if all records have the same facet values for theattributeForDistinct
. - facets
-
Facets for which to retrieve facet values that match the search criteria and the number of matching facet values. To retrieve all facets, use the wildcard character
*
. For more information, see facets. - filters
-
Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - Numeric filters.
<facet> <op> <number>
, where<op>
is one of<
,<=
,=
,!=
,>
,>=
. - Ranges.<facet>:<lower> TO <upper>
where<lower>
and<upper>
are the lower and upper limits of the range (inclusive). - Facet filters.<facet>:<value>
where<facet>
is a facet attribute (case-sensitive) and<value>
a facet value. - Tag filters._tags:<value>
or just<value>
(case-sensitive). - Boolean filters.<facet>: true | false
. You can combine filters withAND
,OR
, andNOT
operators with the following restrictions: - You can only combine filters of the same type withOR
. Not supported:facet:value OR num > 3
. - You can't useNOT
with combinations of filters. Not supported:NOT(facet:value OR facet:value)
- You can't combine conjunctions (AND
) withOR
. Not supported:facet:value OR (facet:value AND facet:value)
Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (OR
,AND
,NOT
), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see Filters. - getRankingInfo
-
Whether the search response should include detailed ranking information.
- insideBoundingBox
-
Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair:
[p1 lat, p1 long, p2 lat, p2 long]
. Provide multiple bounding boxes as nested arrays. For more information, see rectangular area. - insidePolygon
-
Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see filtering inside polygons. This parameter is ignored if you also specify
insideBoundingBox
. - minimumAroundRadius
-
Minimum radius (in meters) for a search around a location when
aroundRadius
isn't set. - naturalLanguages
-
ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches): - Sets
removeStopWords
andignorePlurals
to the list of provided languages. - SetsremoveWordsIfNoResults
toallOptional
. - Adds anatural_language
attribute toruleContexts
andanalyticsTags
. - percentileComputation
-
Whether to include this search when calculating processing-time percentiles.
- personalizationImpact
-
Impact that Personalization should have on this search. The higher this value is, the more Personalization determines the ranking compared to other factors. For more information, see Understanding Personalization impact.
- restrictSearchableAttributes
-
Restricts a search to a subset of your searchable attributes. Attribute names are case-sensitive.
- ruleContexts
-
Assigns a rule context to the search query. Rule contexts are strings that you can use to trigger matching rules.
- similarQuery
-
Keywords to be used instead of the search query to conduct a more broader search. Using the
similarQuery
parameter changes other settings: -queryType
is set toprefixNone
. -removeStopWords
is set to true. -words
is set as the first ranking criterion. - All remaining words are treated asoptionalWords
. Since thesimilarQuery
is supposed to do a broad search, they usually return many results. Combine it withfilters
to narrow down the list of results. - sumOrFiltersScores
-
Whether to sum all filter scores. If true, all filter scores are summed. Otherwise, the maximum filter score is kept. For more information, see filter scores.
- synonyms
-
Whether to take into account an index's synonyms for this search.
- userToken
-
Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For more information, see user token.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
BaseSearchResponse
BaseSearchResponse
Value parameters
- abTestID
-
A/B test ID. This is only included in the response for indices that are part of an A/B test.
- abTestVariantID
-
Variant ID. This is only included in the response for indices that are part of an A/B test.
- appliedRules
-
Rules applied to the query.
- aroundLatLng
-
Computed geographical location.
- automaticInsights
-
Whether automatic events collection is enabled for the application.
- automaticRadius
-
Distance from a central coordinate provided by
aroundLatLng
. - exhaustiveFacetsCount
-
See the
facetsCount
field of theexhaustive
object in the response. - exhaustiveNbHits
-
See the
nbHits
field of theexhaustive
object in the response. - exhaustiveTypo
-
See the
typo
field of theexhaustive
object in the response. - facets
-
Facet counts.
- facetsStats
-
Statistics for numerical facets.
- index
-
Index name used for the query.
- indexUsed
-
Index name used for the query. During A/B testing, the targeted index isn't always the index used by the query.
- message
-
Warnings about the query.
- nbSortedHits
-
Number of hits selected and sorted by the relevant sort algorithm.
- parsedQuery
-
Post-normalization query string that will be searched.
- processingTimeMS
-
Time the server took to process the request, in milliseconds.
- processingTimingsMS
-
Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
- queryAfterRemoval
-
Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set.
- queryID
-
Unique identifier for the query. This is used for click analytics.
- serverTimeMS
-
Time the server took to process the request, in milliseconds.
- serverUsed
-
Host name of the server that processed the request.
- userData
-
An object with custom data. You can store up to 32kB as custom data.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
Attributes
- Companion
- object
- Supertypes
- Known subtypes
BooleanString enumeration
BooleanString enumeration
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
BooleanString.type
Attributes
- Supertypes
-
class CustomSerializer[BooleanString]trait Serializer[BooleanString]class Objecttrait Matchableclass Any
BoughtTogetherQuery
BoughtTogetherQuery
Value parameters
- indexName
-
Index name (case-sensitive).
- maxRecommendations
-
Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
- objectID
-
Unique record identifier.
- threshold
-
Minimum score a recommendation must have to be included in the response.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RecommendationsRequestclass Objecttrait Matchableclass AnyShow all
Condition that triggers the rule. If not specified, the rule is triggered for all recommendations.
Condition that triggers the rule. If not specified, the rule is triggered for all recommendations.
Value parameters
- context
-
An additional restriction that only triggers the rule, when the search has the same value as
ruleContexts
parameter. For example, ifcontext: mobile
, the rule is only triggered when the search request has a matchingruleContexts: mobile
. A rule context must only contain alphanumeric characters. - filters
-
Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - Numeric filters.
<facet> <op> <number>
, where<op>
is one of<
,<=
,=
,!=
,>
,>=
. - Ranges.<facet>:<lower> TO <upper>
where<lower>
and<upper>
are the lower and upper limits of the range (inclusive). - Facet filters.<facet>:<value>
where<facet>
is a facet attribute (case-sensitive) and<value>
a facet value. - Tag filters._tags:<value>
or just<value>
(case-sensitive). - Boolean filters.<facet>: true | false
. You can combine filters withAND
,OR
, andNOT
operators with the following restrictions: - You can only combine filters of the same type withOR
. Not supported:facet:value OR num > 3
. - You can't useNOT
with combinations of filters. Not supported:NOT(facet:value OR facet:value)
- You can't combine conjunctions (AND
) withOR
. Not supported:facet:value OR (facet:value AND facet:value)
Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (OR
,AND
,NOT
), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see Filters.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Effect of the rule.
Effect of the rule.
Value parameters
- hide
-
Exclude items from recommendations.
- promote
-
Place items at specific positions in the list of recommendations.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Response, taskID, and deletion timestamp.
Response, taskID, and deletion timestamp.
Value parameters
- deletedAt
-
Date and time when the object was deleted, in RFC 3339 format.
- taskID
-
Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task's progress with the
task
operation and thistaskID
.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Determines how many records of a group are included in the search results. Records with the same value for the attributeForDistinct
attribute are considered a group. The distinct
setting controls how many members of the group are returned. This is useful for deduplication and grouping. The distinct
setting is ignored if attributeForDistinct
is not set.
Determines how many records of a group are included in the search results. Records with the same value for the attributeForDistinct
attribute are considered a group. The distinct
setting controls how many members of the group are returned. This is useful for deduplication and grouping. The distinct
setting is ignored if attributeForDistinct
is not set.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class BooleanValueclass IntValue
Attributes
- Supertypes
- Self type
-
DistinctSerializer.type
Error.
Error.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
Determines how the Exact ranking criterion is computed when the search query has only one word. - attribute
. The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for "road" will match the value "road", but not "road trip". - none
. The Exact ranking criterion is ignored on single-word searches. - word
. The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. Only exact matches will be highlighted, partial and prefix matches won't.
Determines how the Exact ranking criterion is computed when the search query has only one word. - attribute
. The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for "road" will match the value "road", but not "road trip". - none
. The Exact ranking criterion is ignored on single-word searches. - word
. The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. Only exact matches will be highlighted, partial and prefix matches won't.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class CustomSerializer[ExactOnSingleWordQuery]trait Serializer[ExactOnSingleWordQuery]class Objecttrait Matchableclass Any
Whether certain properties of the search response are calculated exhaustive (exact) or approximated.
Whether certain properties of the search response are calculated exhaustive (exact) or approximated.
Value parameters
- facetValues
-
The value is
false
if not all facet values are retrieved. - facetsCount
-
Whether the facet count is exhaustive (
true
) or approximate (false
). See the related discussion. - nbHits
-
Whether the
nbHits
is exhaustive (true
) or approximate (false
). When the query takes more than 50ms to be processed, the engine makes an approximation. This can happen when using complex filters on millions of records, when typo-tolerance was not exhaustive, or when enough hits have been retrieved (for example, after the engine finds 10,000 exact matches).nbHits
is reported as non-exhaustive whenever an approximation is made, even if the approximation didn’t, in the end, impact the exhaustivity of the query. - rulesMatch
-
Rules matching exhaustivity. The value is
false
if rules were enable for this query, and could not be fully processed due a timeout. This is generally caused by the number of alternatives (such as typos) which is too large. - typo
-
Whether the typo search was exhaustive (
true
) or approximate (false
). An approximation is done when the typo search query part takes more than 10% of the query budget (ie. 5ms by default) to be processed (this can happen when a lot of typo alternatives exist for the query). This field will not be included when typo-tolerance is entirely disabled.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Filter the search by facet values, so that only records with the same facet values are retrieved. Prefer using the filters
parameter, which supports all filter types and combinations with boolean operators. - [filter1, filter2]
is interpreted as filter1 AND filter2
. - [[filter1, filter2], filter3]
is interpreted as filter1 OR filter2 AND filter3
. - facet:-value
is interpreted as NOT facet:value
. While it's best to avoid attributes that start with a -
, you can still filter them by escaping with a backslash: facet:\\-value
.
Filter the search by facet values, so that only records with the same facet values are retrieved. Prefer using the filters
parameter, which supports all filter types and combinations with boolean operators. - [filter1, filter2]
is interpreted as filter1 AND filter2
. - [[filter1, filter2], filter3]
is interpreted as filter1 OR filter2 AND filter3
. - facet:-value
is interpreted as NOT facet:value
. While it's best to avoid attributes that start with a -
, you can still filter them by escaping with a backslash: facet:\\-value
.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SeqOfFacetFiltersclass StringValue
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
FacetFilters.type
Attributes
- Supertypes
- Self type
Order of facet names and facet values in your UI.
Order of facet names and facet values in your UI.
Value parameters
- values
-
Order of facet values. One object for each facet.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
FacetStats
FacetStats
Value parameters
- avg
-
Average facet value in the results.
- max
-
Maximum value in the results.
- min
-
Minimum value in the results.
- sum
-
Sum of all values in the results.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
FallbackParams
FallbackParams
Value parameters
- advancedSyntax
-
Whether to support phrase matching and excluding words from search queries. Use the
advancedSyntaxFeatures
parameter to control which feature is supported. - advancedSyntaxFeatures
-
Advanced search syntax features you want to support. -
exactPhrase
. Phrases in quotes must match exactly. For example,sparkly blue \"iPhone case\"
only returns records with the exact string "iPhone case". -excludeWords
. Query words prefixed with a-
must not occur in a record. For example,search -engine
matches records that contain "search" but not "engine". This setting only has an effect ifadvancedSyntax
is true. - allowCompressionOfIntegerArray
-
Whether arrays with exclusively non-negative integers should be compressed for better performance. If true, the compressed arrays may be reordered.
- allowTyposOnNumericTokens
-
Whether to allow typos on numbers in the search query. Turn off this setting to reduce the number of irrelevant matches when searching in large sets of similar numbers.
- alternativesAsExact
-
Determine which plurals and synonyms should be considered an exact matches. By default, Algolia treats singular and plural forms of a word, and single-word synonyms, as exact matches when searching. For example: - "swimsuit" and "swimsuits" are treated the same - "swimsuit" and "swimwear" are treated the same (if they are synonyms). -
ignorePlurals
. Plurals and similar declensions added by theignorePlurals
setting are considered exact matches. -singleWordSynonym
. Single-word synonyms, such as "NY" = "NYC", are considered exact matches. -multiWordsSynonym
. Multi-word synonyms, such as "NY" = "New York", are considered exact matches. - analytics
-
Whether this search will be included in Analytics.
- analyticsTags
-
Tags to apply to the query for segmenting analytics data.
- aroundLatLng
-
Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within a circle around this central location are included in the results. The radius of the circle is determined by the
aroundRadius
andminimumAroundRadius
settings. This parameter is ignored if you also specifyinsidePolygon
orinsideBoundingBox
. - aroundLatLngViaIP
-
Whether to obtain the coordinates from the request's IP address.
- attributeCriteriaComputedByMinProximity
-
Whether the best matching attribute should be determined by minimum proximity. This setting only affects ranking if the Attribute ranking criterion comes before Proximity in the
ranking
setting. If true, the best matching attribute is selected based on the minimum proximity of multiple matches. Otherwise, the best matching attribute is determined by the order in thesearchableAttributes
setting. - attributeForDistinct
-
Attribute that should be used to establish groups of results. Attribute names are case-sensitive. All records with the same value for this attribute are considered a group. You can combine
attributeForDistinct
with thedistinct
search parameter to control how many items per group are included in the search results. If you want to use the same attribute also for faceting, use theafterDistinct
modifier of theattributesForFaceting
setting. This applies faceting after deduplication, which will result in accurate facet counts. - attributesForFaceting
-
Attributes used for faceting. Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. Modifiers -
filterOnly(\"ATTRIBUTE\")
. Allows the attribute to be used as a filter but doesn't evaluate the facet values. -searchable(\"ATTRIBUTE\")
. Allows searching for facet values. -afterDistinct(\"ATTRIBUTE\")
. Evaluates the facet count after deduplication withdistinct
. This ensures accurate facet counts. You can apply this modifier to searchable facets:afterDistinct(searchable(ATTRIBUTE))
. - attributesToHighlight
-
Attributes to highlight. By default, all searchable attributes are highlighted. Use
*
to highlight all attributes or use an empty array[]
to turn off highlighting. Attribute names are case-sensitive. With highlighting, strings that match the search query are surrounded by HTML tags defined byhighlightPreTag
andhighlightPostTag
. You can use this to visually highlight matching parts of a search query in your UI. For more information, see Highlighting and snippeting. - attributesToRetrieve
-
Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. -
*
retrieves all attributes, except attributes included in thecustomRanking
andunretrievableAttributes
settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the*
:[\"*\", \"-ATTRIBUTE\"]
. - TheobjectID
attribute is always included. - attributesToSnippet
-
Attributes for which to enable snippets. Attribute names are case-sensitive. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation:
ATTRIBUTE:NUMBER
, whereNUMBER
is the number of words to be extracted. - attributesToTransliterate
-
Attributes, for which you want to support Japanese transliteration. Transliteration supports searching in any of the Japanese writing systems. To support transliteration, you must set the indexing language to Japanese. Attribute names are case-sensitive.
- camelCaseAttributes
-
Attributes for which to split camel case words. Attribute names are case-sensitive.
- clickAnalytics
-
Whether to include a
queryID
attribute in the response. The query ID is a unique identifier for a search query and is required for tracking click and conversion events. - customNormalization
-
Characters and their normalized replacements. This overrides Algolia's default normalization.
- decompoundQuery
-
Whether to split compound words in the query into their building blocks. For more information, see Word segmentation. Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn't work for words with non-spacing mark Unicode characters. For example,
Gartenstühle
won't be decompounded if theü
consists ofu
(U+0075) and◌̈
(U+0308). - decompoundedAttributes
-
Searchable attributes to which Algolia should apply word segmentation (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, "firefighter". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (
nl
), German (de
), Finnish (fi
), Danish (da
), Swedish (sv
), and Norwegian (no
). Decompounding doesn't work for words with non-spacing mark Unicode characters. For example,Gartenstühle
won't be decompounded if theü
consists ofu
(U+0075) and◌̈
(U+0308). - disableExactOnAttributes
-
Searchable attributes for which you want to turn off the Exact ranking criterion. Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelihood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
- disablePrefixOnAttributes
-
Searchable attributes for which you want to turn off prefix matching. Attribute names are case-sensitive.
- disableTypoToleranceOnAttributes
-
Attributes for which you want to turn off typo tolerance. Attribute names are case-sensitive. Returning only exact matches can help when: - Searching in hyphenated attributes. - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as
disableTypoToleranceOnWords
or adding synonyms if your attributes have intentional unusual spellings that might look like typos. - disableTypoToleranceOnWords
-
Creates a list of words which require exact matches. This also turns off word splitting and concatenation for the specified words.
- enableABTest
-
Whether to enable A/B testing for this search.
- enablePersonalization
-
Whether to enable Personalization.
- enableReRanking
-
Whether this search will use Dynamic Re-Ranking. This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard.
- enableRules
-
Whether to enable rules.
- facetingAfterDistinct
-
Whether faceting should be applied after deduplication with
distinct
. This leads to accurate facet counts when using faceting in combination withdistinct
. It's usually better to useafterDistinct
modifiers in theattributesForFaceting
setting, asfacetingAfterDistinct
only computes correct facet counts if all records have the same facet values for theattributeForDistinct
. - facets
-
Facets for which to retrieve facet values that match the search criteria and the number of matching facet values. To retrieve all facets, use the wildcard character
*
. For more information, see facets. - filters
-
Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - Numeric filters.
<facet> <op> <number>
, where<op>
is one of<
,<=
,=
,!=
,>
,>=
. - Ranges.<facet>:<lower> TO <upper>
where<lower>
and<upper>
are the lower and upper limits of the range (inclusive). - Facet filters.<facet>:<value>
where<facet>
is a facet attribute (case-sensitive) and<value>
a facet value. - Tag filters._tags:<value>
or just<value>
(case-sensitive). - Boolean filters.<facet>: true | false
. You can combine filters withAND
,OR
, andNOT
operators with the following restrictions: - You can only combine filters of the same type withOR
. Not supported:facet:value OR num > 3
. - You can't useNOT
with combinations of filters. Not supported:NOT(facet:value OR facet:value)
- You can't combine conjunctions (AND
) withOR
. Not supported:facet:value OR (facet:value AND facet:value)
Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (OR
,AND
,NOT
), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see Filters. - getRankingInfo
-
Whether the search response should include detailed ranking information.
- highlightPostTag
-
HTML tag to insert after the highlighted parts in all highlighted results and snippets.
- highlightPreTag
-
HTML tag to insert before the highlighted parts in all highlighted results and snippets.
- indexLanguages
-
Languages for language-specific processing steps, such as word detection and dictionary settings. You should always specify an indexing language. If you don't specify an indexing language, the search engine uses all supported languages, or the languages you specified with the
ignorePlurals
orremoveStopWords
parameters. This can lead to unexpected search results. For more information, see Language-specific configuration. - insideBoundingBox
-
Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair:
[p1 lat, p1 long, p2 lat, p2 long]
. Provide multiple bounding boxes as nested arrays. For more information, see rectangular area. - insidePolygon
-
Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see filtering inside polygons. This parameter is ignored if you also specify
insideBoundingBox
. - maxFacetHits
-
Maximum number of facet values to return when searching for facet values.
- maxValuesPerFacet
-
Maximum number of facet values to return for each facet.
- minProximity
-
Minimum proximity score for two matching words. This adjusts the Proximity ranking criterion by equally scoring matches that are farther apart. For example, if
minProximity
is 2, neighboring matches and matches with one word between them would have the same score. - minWordSizefor1Typo
-
Minimum number of characters a word in the search query must contain to accept matches with one typo.
- minWordSizefor2Typos
-
Minimum number of characters a word in the search query must contain to accept matches with two typos.
- minimumAroundRadius
-
Minimum radius (in meters) for a search around a location when
aroundRadius
isn't set. - naturalLanguages
-
ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches): - Sets
removeStopWords
andignorePlurals
to the list of provided languages. - SetsremoveWordsIfNoResults
toallOptional
. - Adds anatural_language
attribute toruleContexts
andanalyticsTags
. - numericAttributesForFiltering
-
Numeric attributes that can be used as numerical filters. Attribute names are case-sensitive. By default, all numeric attributes are available as numerical filters. For faster indexing, reduce the number of numeric attributes. To turn off filtering for all numeric attributes, specify an attribute that doesn't exist in your index, such as
NO_NUMERIC_FILTERING
. Modifier -equalOnly(\"ATTRIBUTE\")
. Support only filtering based on equality comparisons=
and!=
. - optionalWords
-
Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn't include the optional words. For example, if the search query is "action video" and "video" is an optional word, the search engine runs two queries. One for "action video" and one for "action". Records that match all words are ranked higher. For a search query with 4 or more words and all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If
optionalWords
has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - IfoptionalWords
has 10 or more words, the number of required matched words increases by the number of optional words divided by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. For more information, see Optional words. - paginationLimitedTo
-
Maximum number of search results that can be obtained through pagination. Higher pagination limits might slow down your search. For pagination limits above 1,000, the sorting of results beyond the 1,000th hit can't be guaranteed.
- percentileComputation
-
Whether to include this search when calculating processing-time percentiles.
- personalizationImpact
-
Impact that Personalization should have on this search. The higher this value is, the more Personalization determines the ranking compared to other factors. For more information, see Understanding Personalization impact.
- query
-
Search query.
- queryLanguages
-
Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the
removeStopWords
andignorePlurals
settings. This setting also sets a dictionary for word detection in the logogram-based CJK languages. To support this, you must place the CJK language first. You should always specify a query language. If you don't specify an indexing language, the search engine uses all supported languages, or the languages you specified with theignorePlurals
orremoveStopWords
parameters. This can lead to unexpected search results. For more information, see Language-specific configuration. - ranking
-
Determines the order in which Algolia returns your results. By default, each entry corresponds to a ranking criteria. The tie-breaking algorithm sequentially applies each criterion in the order they're specified. If you configure a replica index for sorting by an attribute, you put the sorting attribute at the top of the list. Modifiers -
asc(\"ATTRIBUTE\")
. Sort the index by the values of an attribute, in ascending order. -desc(\"ATTRIBUTE\")
. Sort the index by the values of an attribute, in descending order. Before you modify the default setting, you should test your changes in the dashboard, and by A/B testing. - relevancyStrictness
-
Relevancy threshold below which less relevant results aren't included in the results. You can only set
relevancyStrictness
on virtual replica indices. Use this setting to strike a balance between the relevance and number of returned results. - replaceSynonymsInHighlight
-
Whether to replace a highlighted word with the matched synonym. By default, the original words are highlighted even if a synonym matches. For example, with
home
as a synonym forhouse
and a search forhome
, records matching either "home" or "house" are included in the search results, and either "home" or "house" are highlighted. WithreplaceSynonymsInHighlight
set totrue
, a search forhome
still matches the same records, but all occurrences of "house" are replaced by "home" in the highlighted response. - replicas
-
Creates replica indices. Replicas are copies of a primary index with the same records but different settings, synonyms, or rules. If you want to offer a different ranking or sorting of your search results, you'll use replica indices. All index operations on a primary index are automatically forwarded to its replicas. To add a replica index, you must provide the complete set of replicas to this parameter. If you omit a replica from this list, the replica turns into a regular, standalone index that will no longer be synced with the primary index. Modifier -
virtual(\"REPLICA\")
. Create a virtual replica, Virtual replicas don't increase the number of records and are optimized for Relevant sorting. - responseFields
-
Properties to include in the API response of
search
andbrowse
requests. By default, all response properties are included. To reduce the response size, you can select, which attributes should be included. You can't exclude these properties:message
,warning
,cursor
,serverUsed
,indexUsed
,abTestVariantID
,parsedQuery
, or any property triggered by thegetRankingInfo
parameter. Don't exclude properties that you might need in your search UI. - restrictHighlightAndSnippetArrays
-
Whether to restrict highlighting and snippeting to items that at least partially matched the search query. By default, all items are highlighted and snippeted.
- restrictSearchableAttributes
-
Restricts a search to a subset of your searchable attributes. Attribute names are case-sensitive.
- ruleContexts
-
Assigns a rule context to the search query. Rule contexts are strings that you can use to trigger matching rules.
- searchableAttributes
-
Attributes used for searching. Attribute names are case-sensitive. By default, all attributes are searchable and the Attribute ranking criterion is turned off. With a non-empty list, Algolia only returns results with matches in the selected attributes. In addition, the Attribute ranking criterion is turned on: matches in attributes that are higher in the list of
searchableAttributes
rank first. To make matches in two attributes rank equally, include them in a comma-separated string, such as\"title,alternate_title\"
. Attributes with the same priority are always unordered. For more information, see Searchable attributes. Modifier -unordered(\"ATTRIBUTE\")
. Ignore the position of a match within the attribute. Without a modifier, matches at the beginning of an attribute rank higher than matches at the end. - separatorsToIndex
-
Control which non-alphanumeric characters are indexed. By default, Algolia ignores non-alphanumeric characters like hyphen (
-
), plus (+
), and parentheses ((
,)
). To include such characters, define them withseparatorsToIndex
. Separators are all non-letter characters except spaces and currency characters, such as $€£¥. WithseparatorsToIndex
, Algolia treats separator characters as separate words. For example, in a search for "Disney+", Algolia considers "Disney" and "+" as two separate words. - similarQuery
-
Keywords to be used instead of the search query to conduct a more broader search. Using the
similarQuery
parameter changes other settings: -queryType
is set toprefixNone
. -removeStopWords
is set to true. -words
is set as the first ranking criterion. - All remaining words are treated asoptionalWords
. Since thesimilarQuery
is supposed to do a broad search, they usually return many results. Combine it withfilters
to narrow down the list of results. - snippetEllipsisText
-
String used as an ellipsis indicator when a snippet is truncated.
- sortFacetValuesBy
-
Order in which to retrieve facet values. -
count
. Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. -alpha
. Retrieve facet values alphabetically. This setting doesn't influence how facet values are displayed in your UI (seerenderingContent
). For more information, see facet value display. - sumOrFiltersScores
-
Whether to sum all filter scores. If true, all filter scores are summed. Otherwise, the maximum filter score is kept. For more information, see filter scores.
- synonyms
-
Whether to take into account an index's synonyms for this search.
- unretrievableAttributes
-
Attributes that can't be retrieved at query time. This can be useful if you want to use an attribute for ranking or to restrict access, but don't want to include it in the search results. Attribute names are case-sensitive.
- userData
-
An object with custom data. You can store up to 32kB as custom data.
- userToken
-
Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For more information, see user token.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object BoughtTogether
Frequently bought together model. This model recommends items that have been purchased within 1 day with the item with the ID objectID
.
FrequentlyBoughtTogether
FrequentlyBoughtTogether
Value parameters
- objectID
-
Unique record identifier.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
GetRecommendTaskResponse
GetRecommendTaskResponse
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Recommend request body.
Recommend request body.
Value parameters
- requests
-
Recommendation request with parameters depending on the requested model.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
GetRecommendationsResponse
GetRecommendationsResponse
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Object ID of the recommendation you want to exclude.
Object ID of the recommendation you want to exclude.
Value parameters
- objectID
-
Unique record identifier.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
HighlightResult
HighlightResult
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HighlightResult.type
Surround words that match the query with HTML tags for highlighting.
Surround words that match the query with HTML tags for highlighting.
Value parameters
- fullyHighlighted
-
Whether the entire attribute value is highlighted.
- matchedWords
-
List of matched words from the search query.
- value
-
Highlighted attribute value, including HTML tags.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait HighlightResultTraittrait HighlightResultclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Known subtypes
-
class HighlightResultOption
Treat singular, plurals, and other forms of declensions as equivalent. You should only use this feature for the languages used in your index.
Treat singular, plurals, and other forms of declensions as equivalent. You should only use this feature for the languages used in your index.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class BooleanValueclass SeqOfSupportedLanguagetrait IgnorePluralsTraittrait BooleanStringobject Falseobject TrueShow all
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
IgnorePlurals.type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Known subtypes
Order of facet names.
Order of facet names.
Value parameters
- order
-
Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JsonSupport.type
LookingSimilar
LookingSimilar
Value parameters
- objectID
-
Unique record identifier.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object LookingSimilar
Looking similar model. This model recommends items that look similar to the item with the ID objectID
based on image attributes in your index.
Looking similar model. This model recommends items that look similar to the item with the ID objectID
based on image attributes in your index.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
LookingSimilarModel.type
Attributes
- Supertypes
-
class CustomSerializer[LookingSimilarModel]trait Serializer[LookingSimilarModel]class Objecttrait Matchableclass Any
LookingSimilarQuery
LookingSimilarQuery
Value parameters
- indexName
-
Index name (case-sensitive).
- maxRecommendations
-
Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
- objectID
-
Unique record identifier.
- threshold
-
Minimum score a recommendation must have to be included in the response.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RecommendationsRequestclass Objecttrait Matchableclass AnyShow all
Whether the whole query string matches or only a part.
Whether the whole query string matches or only a part.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
MatchLevel.type
Attributes
- Supertypes
-
class CustomSerializer[MatchLevel]trait Serializer[MatchLevel]class Objecttrait Matchableclass Any
MatchedGeoLocation
MatchedGeoLocation
Value parameters
- distance
-
Distance between the matched location and the search location (in meters).
- lat
-
Latitude of the matched location.
- lng
-
Longitude of the matched location.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Filter by numeric facets. Prefer using the filters
parameter, which supports all filter types and combinations with boolean operators. You can use numeric comparison operators: <
, <=
, =
, !=
, >
, >=
. Comparisons are precise up to 3 decimals. You can also provide ranges: facet:<lower> TO <upper>
. The range includes the lower and upper boundaries. The same combination rules apply as for facetFilters
.
Filter by numeric facets. Prefer using the filters
parameter, which supports all filter types and combinations with boolean operators. You can use numeric comparison operators: <
, <=
, =
, !=
, >
, >=
. Comparisons are precise up to 3 decimals. You can also provide ranges: facet:<lower> TO <upper>
. The range includes the lower and upper boundaries. The same combination rules apply as for facetFilters
.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SeqOfNumericFiltersclass StringValue
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
NumericFilters.type
Attributes
- Supertypes
- Self type
Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don't exclude records from the search results. Records that match the optional filter rank before records that don't match. If you're using a negative filter facet:-value
, matching records rank after records that don't match. - Optional filters don't work on virtual replicas. - Optional filters are applied after sort-by attributes. - Optional filters don't work with numeric attributes.
Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don't exclude records from the search results. Records that match the optional filter rank before records that don't match. If you're using a negative filter facet:-value
, matching records rank after records that don't match. - Optional filters don't work on virtual replicas. - Optional filters are applied after sort-by attributes. - Optional filters don't work with numeric attributes.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SeqOfOptionalFiltersclass StringValue
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
OptionalFilters.type
Attributes
- Supertypes
- Self type
Filter or boost recommendations matching a facet filter.
Filter or boost recommendations matching a facet filter.
Value parameters
- automaticFacetFilters
-
Filter recommendations that match or don't match the same
facet:facet_value
combination as the viewed item. - filters
-
Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - Numeric filters.
<facet> <op> <number>
, where<op>
is one of<
,<=
,=
,!=
,>
,>=
. - Ranges.<facet>:<lower> TO <upper>
where<lower>
and<upper>
are the lower and upper limits of the range (inclusive). - Facet filters.<facet>:<value>
where<facet>
is a facet attribute (case-sensitive) and<value>
a facet value. - Tag filters._tags:<value>
or just<value>
(case-sensitive). - Boolean filters.<facet>: true | false
. You can combine filters withAND
,OR
, andNOT
operators with the following restrictions: - You can only combine filters of the same type withOR
. Not supported:facet:value OR num > 3
. - You can't useNOT
with combinations of filters. Not supported:NOT(facet:value OR facet:value)
- You can't combine conjunctions (AND
) withOR
. Not supported:facet:value OR (facet:value AND facet:value)
Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (OR
,AND
,NOT
), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see Filters. - optionalFilters
-
Filters to promote or demote records in the search results. Optional filters work like facet filters, but they don't exclude records from the search results. Records that match the optional filter rank before records that don't match. Matches with higher weights (
<score=N>
) rank before matches with lower weights. If you're using a negative filterfacet:-value
, matching records rank after records that don't match.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Personalization
Personalization
Value parameters
- filtersScore
-
The score of the filters.
- rankingScore
-
The score of the ranking.
- score
-
The score of the event.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Object ID and position of the recommendation you want to pin.
Object ID and position of the recommendation you want to pin.
Value parameters
- objectID
-
Unique record identifier.
- position
-
Index in the list of recommendations where to place this item.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Determines if and how query words are interpreted as prefixes. By default, only the last query word is treated as a prefix (prefixLast
). To turn off prefix search, use prefixNone
. Avoid prefixAll
, which treats all query words as prefixes. This might lead to counterintuitive results and makes your search slower. For more information, see Prefix searching.
Determines if and how query words are interpreted as prefixes. By default, only the last query word is treated as a prefix (prefixLast
). To turn off prefix search, use prefixNone
. Avoid prefixAll
, which treats all query words as prefixes. This might lead to counterintuitive results and makes your search slower. For more information, see Prefix searching.
Attributes
Range object with lower and upper values in meters to define custom ranges.
Range object with lower and upper values in meters to define custom ranges.
Value parameters
- from
-
Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
- value
-
Upper boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Object with detailed information about the record's ranking.
Object with detailed information about the record's ranking.
Value parameters
- filters
-
Whether a filter matched the query.
- firstMatchedWord
-
Position of the first matched word in the best matching attribute of the record.
- geoDistance
-
Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters).
- geoPrecision
-
Precision used when computing the geo distance, in meters.
- nbExactWords
-
Number of exactly matched words.
- nbTypos
-
Number of typos encountered when matching the record.
- promoted
-
Whether the record was promoted by a rule.
- promotedByReRanking
-
Whether the record is re-ranked.
- proximityDistance
-
Number of words between multiple matches in the query plus 1. For single word queries,
proximityDistance
is 0. - userScore
-
Overall ranking of the record, expressed as a single integer. This attribute is internal.
- words
-
Number of matched words.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Restrict Dynamic Re-Ranking to records that match these filters.
Restrict Dynamic Re-Ranking to records that match these filters.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class StringValue
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ReRankingApplyFilter.type
Attributes
- Supertypes
- Self type
Recommend hit.
Recommend hit.
Value parameters
- highlightResult
-
Surround words that match the query with HTML tags for highlighting.
- objectID
-
Unique record identifier.
- score
-
Recommendation score.
- snippetResult
-
Snippets that show the context around a matching search query.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RecommendationsHitTraittrait RecommendationsHitclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
Index settings.
Index settings.
Value parameters
- advancedSyntax
-
Whether to support phrase matching and excluding words from search queries. Use the
advancedSyntaxFeatures
parameter to control which feature is supported. - advancedSyntaxFeatures
-
Advanced search syntax features you want to support. -
exactPhrase
. Phrases in quotes must match exactly. For example,sparkly blue \"iPhone case\"
only returns records with the exact string "iPhone case". -excludeWords
. Query words prefixed with a-
must not occur in a record. For example,search -engine
matches records that contain "search" but not "engine". This setting only has an effect ifadvancedSyntax
is true. - allowCompressionOfIntegerArray
-
Whether arrays with exclusively non-negative integers should be compressed for better performance. If true, the compressed arrays may be reordered.
- allowTyposOnNumericTokens
-
Whether to allow typos on numbers in the search query. Turn off this setting to reduce the number of irrelevant matches when searching in large sets of similar numbers.
- alternativesAsExact
-
Determine which plurals and synonyms should be considered an exact matches. By default, Algolia treats singular and plural forms of a word, and single-word synonyms, as exact matches when searching. For example: - "swimsuit" and "swimsuits" are treated the same - "swimsuit" and "swimwear" are treated the same (if they are synonyms). -
ignorePlurals
. Plurals and similar declensions added by theignorePlurals
setting are considered exact matches. -singleWordSynonym
. Single-word synonyms, such as "NY" = "NYC", are considered exact matches. -multiWordsSynonym
. Multi-word synonyms, such as "NY" = "New York", are considered exact matches. - attributeCriteriaComputedByMinProximity
-
Whether the best matching attribute should be determined by minimum proximity. This setting only affects ranking if the Attribute ranking criterion comes before Proximity in the
ranking
setting. If true, the best matching attribute is selected based on the minimum proximity of multiple matches. Otherwise, the best matching attribute is determined by the order in thesearchableAttributes
setting. - attributeForDistinct
-
Attribute that should be used to establish groups of results. Attribute names are case-sensitive. All records with the same value for this attribute are considered a group. You can combine
attributeForDistinct
with thedistinct
search parameter to control how many items per group are included in the search results. If you want to use the same attribute also for faceting, use theafterDistinct
modifier of theattributesForFaceting
setting. This applies faceting after deduplication, which will result in accurate facet counts. - attributesForFaceting
-
Attributes used for faceting. Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. Modifiers -
filterOnly(\"ATTRIBUTE\")
. Allows the attribute to be used as a filter but doesn't evaluate the facet values. -searchable(\"ATTRIBUTE\")
. Allows searching for facet values. -afterDistinct(\"ATTRIBUTE\")
. Evaluates the facet count after deduplication withdistinct
. This ensures accurate facet counts. You can apply this modifier to searchable facets:afterDistinct(searchable(ATTRIBUTE))
. - attributesToHighlight
-
Attributes to highlight. By default, all searchable attributes are highlighted. Use
*
to highlight all attributes or use an empty array[]
to turn off highlighting. Attribute names are case-sensitive. With highlighting, strings that match the search query are surrounded by HTML tags defined byhighlightPreTag
andhighlightPostTag
. You can use this to visually highlight matching parts of a search query in your UI. For more information, see Highlighting and snippeting. - attributesToRetrieve
-
Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. -
*
retrieves all attributes, except attributes included in thecustomRanking
andunretrievableAttributes
settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the*
:[\"*\", \"-ATTRIBUTE\"]
. - TheobjectID
attribute is always included. - attributesToSnippet
-
Attributes for which to enable snippets. Attribute names are case-sensitive. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation:
ATTRIBUTE:NUMBER
, whereNUMBER
is the number of words to be extracted. - attributesToTransliterate
-
Attributes, for which you want to support Japanese transliteration. Transliteration supports searching in any of the Japanese writing systems. To support transliteration, you must set the indexing language to Japanese. Attribute names are case-sensitive.
- camelCaseAttributes
-
Attributes for which to split camel case words. Attribute names are case-sensitive.
- customNormalization
-
Characters and their normalized replacements. This overrides Algolia's default normalization.
- decompoundQuery
-
Whether to split compound words in the query into their building blocks. For more information, see Word segmentation. Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn't work for words with non-spacing mark Unicode characters. For example,
Gartenstühle
won't be decompounded if theü
consists ofu
(U+0075) and◌̈
(U+0308). - decompoundedAttributes
-
Searchable attributes to which Algolia should apply word segmentation (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, "firefighter". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (
nl
), German (de
), Finnish (fi
), Danish (da
), Swedish (sv
), and Norwegian (no
). Decompounding doesn't work for words with non-spacing mark Unicode characters. For example,Gartenstühle
won't be decompounded if theü
consists ofu
(U+0075) and◌̈
(U+0308). - disableExactOnAttributes
-
Searchable attributes for which you want to turn off the Exact ranking criterion. Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelihood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
- disablePrefixOnAttributes
-
Searchable attributes for which you want to turn off prefix matching. Attribute names are case-sensitive.
- disableTypoToleranceOnAttributes
-
Attributes for which you want to turn off typo tolerance. Attribute names are case-sensitive. Returning only exact matches can help when: - Searching in hyphenated attributes. - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as
disableTypoToleranceOnWords
or adding synonyms if your attributes have intentional unusual spellings that might look like typos. - disableTypoToleranceOnWords
-
Creates a list of words which require exact matches. This also turns off word splitting and concatenation for the specified words.
- enablePersonalization
-
Whether to enable Personalization.
- enableReRanking
-
Whether this search will use Dynamic Re-Ranking. This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard.
- enableRules
-
Whether to enable rules.
- highlightPostTag
-
HTML tag to insert after the highlighted parts in all highlighted results and snippets.
- highlightPreTag
-
HTML tag to insert before the highlighted parts in all highlighted results and snippets.
- indexLanguages
-
Languages for language-specific processing steps, such as word detection and dictionary settings. You should always specify an indexing language. If you don't specify an indexing language, the search engine uses all supported languages, or the languages you specified with the
ignorePlurals
orremoveStopWords
parameters. This can lead to unexpected search results. For more information, see Language-specific configuration. - maxFacetHits
-
Maximum number of facet values to return when searching for facet values.
- maxValuesPerFacet
-
Maximum number of facet values to return for each facet.
- minProximity
-
Minimum proximity score for two matching words. This adjusts the Proximity ranking criterion by equally scoring matches that are farther apart. For example, if
minProximity
is 2, neighboring matches and matches with one word between them would have the same score. - minWordSizefor1Typo
-
Minimum number of characters a word in the search query must contain to accept matches with one typo.
- minWordSizefor2Typos
-
Minimum number of characters a word in the search query must contain to accept matches with two typos.
- numericAttributesForFiltering
-
Numeric attributes that can be used as numerical filters. Attribute names are case-sensitive. By default, all numeric attributes are available as numerical filters. For faster indexing, reduce the number of numeric attributes. To turn off filtering for all numeric attributes, specify an attribute that doesn't exist in your index, such as
NO_NUMERIC_FILTERING
. Modifier -equalOnly(\"ATTRIBUTE\")
. Support only filtering based on equality comparisons=
and!=
. - optionalWords
-
Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn't include the optional words. For example, if the search query is "action video" and "video" is an optional word, the search engine runs two queries. One for "action video" and one for "action". Records that match all words are ranked higher. For a search query with 4 or more words and all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If
optionalWords
has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - IfoptionalWords
has 10 or more words, the number of required matched words increases by the number of optional words divided by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. For more information, see Optional words. - paginationLimitedTo
-
Maximum number of search results that can be obtained through pagination. Higher pagination limits might slow down your search. For pagination limits above 1,000, the sorting of results beyond the 1,000th hit can't be guaranteed.
- queryLanguages
-
Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the
removeStopWords
andignorePlurals
settings. This setting also sets a dictionary for word detection in the logogram-based CJK languages. To support this, you must place the CJK language first. You should always specify a query language. If you don't specify an indexing language, the search engine uses all supported languages, or the languages you specified with theignorePlurals
orremoveStopWords
parameters. This can lead to unexpected search results. For more information, see Language-specific configuration. - ranking
-
Determines the order in which Algolia returns your results. By default, each entry corresponds to a ranking criteria. The tie-breaking algorithm sequentially applies each criterion in the order they're specified. If you configure a replica index for sorting by an attribute, you put the sorting attribute at the top of the list. Modifiers -
asc(\"ATTRIBUTE\")
. Sort the index by the values of an attribute, in ascending order. -desc(\"ATTRIBUTE\")
. Sort the index by the values of an attribute, in descending order. Before you modify the default setting, you should test your changes in the dashboard, and by A/B testing. - relevancyStrictness
-
Relevancy threshold below which less relevant results aren't included in the results. You can only set
relevancyStrictness
on virtual replica indices. Use this setting to strike a balance between the relevance and number of returned results. - replaceSynonymsInHighlight
-
Whether to replace a highlighted word with the matched synonym. By default, the original words are highlighted even if a synonym matches. For example, with
home
as a synonym forhouse
and a search forhome
, records matching either "home" or "house" are included in the search results, and either "home" or "house" are highlighted. WithreplaceSynonymsInHighlight
set totrue
, a search forhome
still matches the same records, but all occurrences of "house" are replaced by "home" in the highlighted response. - replicas
-
Creates replica indices. Replicas are copies of a primary index with the same records but different settings, synonyms, or rules. If you want to offer a different ranking or sorting of your search results, you'll use replica indices. All index operations on a primary index are automatically forwarded to its replicas. To add a replica index, you must provide the complete set of replicas to this parameter. If you omit a replica from this list, the replica turns into a regular, standalone index that will no longer be synced with the primary index. Modifier -
virtual(\"REPLICA\")
. Create a virtual replica, Virtual replicas don't increase the number of records and are optimized for Relevant sorting. - responseFields
-
Properties to include in the API response of
search
andbrowse
requests. By default, all response properties are included. To reduce the response size, you can select, which attributes should be included. You can't exclude these properties:message
,warning
,cursor
,serverUsed
,indexUsed
,abTestVariantID
,parsedQuery
, or any property triggered by thegetRankingInfo
parameter. Don't exclude properties that you might need in your search UI. - restrictHighlightAndSnippetArrays
-
Whether to restrict highlighting and snippeting to items that at least partially matched the search query. By default, all items are highlighted and snippeted.
- searchableAttributes
-
Attributes used for searching. Attribute names are case-sensitive. By default, all attributes are searchable and the Attribute ranking criterion is turned off. With a non-empty list, Algolia only returns results with matches in the selected attributes. In addition, the Attribute ranking criterion is turned on: matches in attributes that are higher in the list of
searchableAttributes
rank first. To make matches in two attributes rank equally, include them in a comma-separated string, such as\"title,alternate_title\"
. Attributes with the same priority are always unordered. For more information, see Searchable attributes. Modifier -unordered(\"ATTRIBUTE\")
. Ignore the position of a match within the attribute. Without a modifier, matches at the beginning of an attribute rank higher than matches at the end. - separatorsToIndex
-
Control which non-alphanumeric characters are indexed. By default, Algolia ignores non-alphanumeric characters like hyphen (
-
), plus (+
), and parentheses ((
,)
). To include such characters, define them withseparatorsToIndex
. Separators are all non-letter characters except spaces and currency characters, such as $€£¥. WithseparatorsToIndex
, Algolia treats separator characters as separate words. For example, in a search for "Disney+", Algolia considers "Disney" and "+" as two separate words. - snippetEllipsisText
-
String used as an ellipsis indicator when a snippet is truncated.
- sortFacetValuesBy
-
Order in which to retrieve facet values. -
count
. Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. -alpha
. Retrieve facet values alphabetically. This setting doesn't influence how facet values are displayed in your UI (seerenderingContent
). For more information, see facet value display. - unretrievableAttributes
-
Attributes that can't be retrieved at query time. This can be useful if you want to use an attribute for ranking or to restrict access, but don't want to include it in the search results. Attribute names are case-sensitive.
- userData
-
An object with custom data. You can store up to 32kB as custom data.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
RecommendModels enumeration
RecommendModels enumeration
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RecommendModels.type
Attributes
- Supertypes
-
class CustomSerializer[RecommendModels]trait Serializer[RecommendModels]class Objecttrait Matchableclass Any
Recommend rule.
Recommend rule.
Value parameters
- description
-
Description of the rule's purpose. This can be helpful for display in the Algolia dashboard.
- enabled
-
Indicates whether to enable the rule. If it isn't enabled, it isn't applied at query time.
- objectID
-
Unique identifier of a rule object.
- validity
-
Time periods when the rule is active.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Search parameters for filtering the recommendations.
Search parameters for filtering the recommendations.
Value parameters
- advancedSyntax
-
Whether to support phrase matching and excluding words from search queries. Use the
advancedSyntaxFeatures
parameter to control which feature is supported. - advancedSyntaxFeatures
-
Advanced search syntax features you want to support. -
exactPhrase
. Phrases in quotes must match exactly. For example,sparkly blue \"iPhone case\"
only returns records with the exact string "iPhone case". -excludeWords
. Query words prefixed with a-
must not occur in a record. For example,search -engine
matches records that contain "search" but not "engine". This setting only has an effect ifadvancedSyntax
is true. - allowCompressionOfIntegerArray
-
Whether arrays with exclusively non-negative integers should be compressed for better performance. If true, the compressed arrays may be reordered.
- allowTyposOnNumericTokens
-
Whether to allow typos on numbers in the search query. Turn off this setting to reduce the number of irrelevant matches when searching in large sets of similar numbers.
- alternativesAsExact
-
Determine which plurals and synonyms should be considered an exact matches. By default, Algolia treats singular and plural forms of a word, and single-word synonyms, as exact matches when searching. For example: - "swimsuit" and "swimsuits" are treated the same - "swimsuit" and "swimwear" are treated the same (if they are synonyms). -
ignorePlurals
. Plurals and similar declensions added by theignorePlurals
setting are considered exact matches. -singleWordSynonym
. Single-word synonyms, such as "NY" = "NYC", are considered exact matches. -multiWordsSynonym
. Multi-word synonyms, such as "NY" = "New York", are considered exact matches. - analytics
-
Whether this search will be included in Analytics.
- analyticsTags
-
Tags to apply to the query for segmenting analytics data.
- aroundLatLng
-
Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within a circle around this central location are included in the results. The radius of the circle is determined by the
aroundRadius
andminimumAroundRadius
settings. This parameter is ignored if you also specifyinsidePolygon
orinsideBoundingBox
. - aroundLatLngViaIP
-
Whether to obtain the coordinates from the request's IP address.
- attributeCriteriaComputedByMinProximity
-
Whether the best matching attribute should be determined by minimum proximity. This setting only affects ranking if the Attribute ranking criterion comes before Proximity in the
ranking
setting. If true, the best matching attribute is selected based on the minimum proximity of multiple matches. Otherwise, the best matching attribute is determined by the order in thesearchableAttributes
setting. - attributeForDistinct
-
Attribute that should be used to establish groups of results. Attribute names are case-sensitive. All records with the same value for this attribute are considered a group. You can combine
attributeForDistinct
with thedistinct
search parameter to control how many items per group are included in the search results. If you want to use the same attribute also for faceting, use theafterDistinct
modifier of theattributesForFaceting
setting. This applies faceting after deduplication, which will result in accurate facet counts. - attributesForFaceting
-
Attributes used for faceting. Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. Modifiers -
filterOnly(\"ATTRIBUTE\")
. Allows the attribute to be used as a filter but doesn't evaluate the facet values. -searchable(\"ATTRIBUTE\")
. Allows searching for facet values. -afterDistinct(\"ATTRIBUTE\")
. Evaluates the facet count after deduplication withdistinct
. This ensures accurate facet counts. You can apply this modifier to searchable facets:afterDistinct(searchable(ATTRIBUTE))
. - attributesToHighlight
-
Attributes to highlight. By default, all searchable attributes are highlighted. Use
*
to highlight all attributes or use an empty array[]
to turn off highlighting. Attribute names are case-sensitive. With highlighting, strings that match the search query are surrounded by HTML tags defined byhighlightPreTag
andhighlightPostTag
. You can use this to visually highlight matching parts of a search query in your UI. For more information, see Highlighting and snippeting. - attributesToRetrieve
-
Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. -
*
retrieves all attributes, except attributes included in thecustomRanking
andunretrievableAttributes
settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the*
:[\"*\", \"-ATTRIBUTE\"]
. - TheobjectID
attribute is always included. - attributesToSnippet
-
Attributes for which to enable snippets. Attribute names are case-sensitive. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation:
ATTRIBUTE:NUMBER
, whereNUMBER
is the number of words to be extracted. - attributesToTransliterate
-
Attributes, for which you want to support Japanese transliteration. Transliteration supports searching in any of the Japanese writing systems. To support transliteration, you must set the indexing language to Japanese. Attribute names are case-sensitive.
- camelCaseAttributes
-
Attributes for which to split camel case words. Attribute names are case-sensitive.
- clickAnalytics
-
Whether to include a
queryID
attribute in the response. The query ID is a unique identifier for a search query and is required for tracking click and conversion events. - customNormalization
-
Characters and their normalized replacements. This overrides Algolia's default normalization.
- decompoundQuery
-
Whether to split compound words in the query into their building blocks. For more information, see Word segmentation. Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn't work for words with non-spacing mark Unicode characters. For example,
Gartenstühle
won't be decompounded if theü
consists ofu
(U+0075) and◌̈
(U+0308). - decompoundedAttributes
-
Searchable attributes to which Algolia should apply word segmentation (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, "firefighter". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (
nl
), German (de
), Finnish (fi
), Danish (da
), Swedish (sv
), and Norwegian (no
). Decompounding doesn't work for words with non-spacing mark Unicode characters. For example,Gartenstühle
won't be decompounded if theü
consists ofu
(U+0075) and◌̈
(U+0308). - disableExactOnAttributes
-
Searchable attributes for which you want to turn off the Exact ranking criterion. Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelihood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
- disablePrefixOnAttributes
-
Searchable attributes for which you want to turn off prefix matching. Attribute names are case-sensitive.
- disableTypoToleranceOnAttributes
-
Attributes for which you want to turn off typo tolerance. Attribute names are case-sensitive. Returning only exact matches can help when: - Searching in hyphenated attributes. - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as
disableTypoToleranceOnWords
or adding synonyms if your attributes have intentional unusual spellings that might look like typos. - disableTypoToleranceOnWords
-
Creates a list of words which require exact matches. This also turns off word splitting and concatenation for the specified words.
- enableABTest
-
Whether to enable A/B testing for this search.
- enablePersonalization
-
Whether to enable Personalization.
- enableReRanking
-
Whether this search will use Dynamic Re-Ranking. This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard.
- enableRules
-
Whether to enable rules.
- facetingAfterDistinct
-
Whether faceting should be applied after deduplication with
distinct
. This leads to accurate facet counts when using faceting in combination withdistinct
. It's usually better to useafterDistinct
modifiers in theattributesForFaceting
setting, asfacetingAfterDistinct
only computes correct facet counts if all records have the same facet values for theattributeForDistinct
. - facets
-
Facets for which to retrieve facet values that match the search criteria and the number of matching facet values. To retrieve all facets, use the wildcard character
*
. For more information, see facets. - filters
-
Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - Numeric filters.
<facet> <op> <number>
, where<op>
is one of<
,<=
,=
,!=
,>
,>=
. - Ranges.<facet>:<lower> TO <upper>
where<lower>
and<upper>
are the lower and upper limits of the range (inclusive). - Facet filters.<facet>:<value>
where<facet>
is a facet attribute (case-sensitive) and<value>
a facet value. - Tag filters._tags:<value>
or just<value>
(case-sensitive). - Boolean filters.<facet>: true | false
. You can combine filters withAND
,OR
, andNOT
operators with the following restrictions: - You can only combine filters of the same type withOR
. Not supported:facet:value OR num > 3
. - You can't useNOT
with combinations of filters. Not supported:NOT(facet:value OR facet:value)
- You can't combine conjunctions (AND
) withOR
. Not supported:facet:value OR (facet:value AND facet:value)
Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (OR
,AND
,NOT
), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see Filters. - getRankingInfo
-
Whether the search response should include detailed ranking information.
- highlightPostTag
-
HTML tag to insert after the highlighted parts in all highlighted results and snippets.
- highlightPreTag
-
HTML tag to insert before the highlighted parts in all highlighted results and snippets.
- indexLanguages
-
Languages for language-specific processing steps, such as word detection and dictionary settings. You should always specify an indexing language. If you don't specify an indexing language, the search engine uses all supported languages, or the languages you specified with the
ignorePlurals
orremoveStopWords
parameters. This can lead to unexpected search results. For more information, see Language-specific configuration. - insideBoundingBox
-
Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair:
[p1 lat, p1 long, p2 lat, p2 long]
. Provide multiple bounding boxes as nested arrays. For more information, see rectangular area. - insidePolygon
-
Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see filtering inside polygons. This parameter is ignored if you also specify
insideBoundingBox
. - maxFacetHits
-
Maximum number of facet values to return when searching for facet values.
- maxValuesPerFacet
-
Maximum number of facet values to return for each facet.
- minProximity
-
Minimum proximity score for two matching words. This adjusts the Proximity ranking criterion by equally scoring matches that are farther apart. For example, if
minProximity
is 2, neighboring matches and matches with one word between them would have the same score. - minWordSizefor1Typo
-
Minimum number of characters a word in the search query must contain to accept matches with one typo.
- minWordSizefor2Typos
-
Minimum number of characters a word in the search query must contain to accept matches with two typos.
- minimumAroundRadius
-
Minimum radius (in meters) for a search around a location when
aroundRadius
isn't set. - naturalLanguages
-
ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches): - Sets
removeStopWords
andignorePlurals
to the list of provided languages. - SetsremoveWordsIfNoResults
toallOptional
. - Adds anatural_language
attribute toruleContexts
andanalyticsTags
. - numericAttributesForFiltering
-
Numeric attributes that can be used as numerical filters. Attribute names are case-sensitive. By default, all numeric attributes are available as numerical filters. For faster indexing, reduce the number of numeric attributes. To turn off filtering for all numeric attributes, specify an attribute that doesn't exist in your index, such as
NO_NUMERIC_FILTERING
. Modifier -equalOnly(\"ATTRIBUTE\")
. Support only filtering based on equality comparisons=
and!=
. - optionalWords
-
Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn't include the optional words. For example, if the search query is "action video" and "video" is an optional word, the search engine runs two queries. One for "action video" and one for "action". Records that match all words are ranked higher. For a search query with 4 or more words and all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If
optionalWords
has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - IfoptionalWords
has 10 or more words, the number of required matched words increases by the number of optional words divided by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. For more information, see Optional words. - paginationLimitedTo
-
Maximum number of search results that can be obtained through pagination. Higher pagination limits might slow down your search. For pagination limits above 1,000, the sorting of results beyond the 1,000th hit can't be guaranteed.
- percentileComputation
-
Whether to include this search when calculating processing-time percentiles.
- personalizationImpact
-
Impact that Personalization should have on this search. The higher this value is, the more Personalization determines the ranking compared to other factors. For more information, see Understanding Personalization impact.
- query
-
Search query.
- queryLanguages
-
Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the
removeStopWords
andignorePlurals
settings. This setting also sets a dictionary for word detection in the logogram-based CJK languages. To support this, you must place the CJK language first. You should always specify a query language. If you don't specify an indexing language, the search engine uses all supported languages, or the languages you specified with theignorePlurals
orremoveStopWords
parameters. This can lead to unexpected search results. For more information, see Language-specific configuration. - ranking
-
Determines the order in which Algolia returns your results. By default, each entry corresponds to a ranking criteria. The tie-breaking algorithm sequentially applies each criterion in the order they're specified. If you configure a replica index for sorting by an attribute, you put the sorting attribute at the top of the list. Modifiers -
asc(\"ATTRIBUTE\")
. Sort the index by the values of an attribute, in ascending order. -desc(\"ATTRIBUTE\")
. Sort the index by the values of an attribute, in descending order. Before you modify the default setting, you should test your changes in the dashboard, and by A/B testing. - relevancyStrictness
-
Relevancy threshold below which less relevant results aren't included in the results. You can only set
relevancyStrictness
on virtual replica indices. Use this setting to strike a balance between the relevance and number of returned results. - replaceSynonymsInHighlight
-
Whether to replace a highlighted word with the matched synonym. By default, the original words are highlighted even if a synonym matches. For example, with
home
as a synonym forhouse
and a search forhome
, records matching either "home" or "house" are included in the search results, and either "home" or "house" are highlighted. WithreplaceSynonymsInHighlight
set totrue
, a search forhome
still matches the same records, but all occurrences of "house" are replaced by "home" in the highlighted response. - replicas
-
Creates replica indices. Replicas are copies of a primary index with the same records but different settings, synonyms, or rules. If you want to offer a different ranking or sorting of your search results, you'll use replica indices. All index operations on a primary index are automatically forwarded to its replicas. To add a replica index, you must provide the complete set of replicas to this parameter. If you omit a replica from this list, the replica turns into a regular, standalone index that will no longer be synced with the primary index. Modifier -
virtual(\"REPLICA\")
. Create a virtual replica, Virtual replicas don't increase the number of records and are optimized for Relevant sorting. - responseFields
-
Properties to include in the API response of
search
andbrowse
requests. By default, all response properties are included. To reduce the response size, you can select, which attributes should be included. You can't exclude these properties:message
,warning
,cursor
,serverUsed
,indexUsed
,abTestVariantID
,parsedQuery
, or any property triggered by thegetRankingInfo
parameter. Don't exclude properties that you might need in your search UI. - restrictHighlightAndSnippetArrays
-
Whether to restrict highlighting and snippeting to items that at least partially matched the search query. By default, all items are highlighted and snippeted.
- restrictSearchableAttributes
-
Restricts a search to a subset of your searchable attributes. Attribute names are case-sensitive.
- ruleContexts
-
Assigns a rule context to the search query. Rule contexts are strings that you can use to trigger matching rules.
- searchableAttributes
-
Attributes used for searching. Attribute names are case-sensitive. By default, all attributes are searchable and the Attribute ranking criterion is turned off. With a non-empty list, Algolia only returns results with matches in the selected attributes. In addition, the Attribute ranking criterion is turned on: matches in attributes that are higher in the list of
searchableAttributes
rank first. To make matches in two attributes rank equally, include them in a comma-separated string, such as\"title,alternate_title\"
. Attributes with the same priority are always unordered. For more information, see Searchable attributes. Modifier -unordered(\"ATTRIBUTE\")
. Ignore the position of a match within the attribute. Without a modifier, matches at the beginning of an attribute rank higher than matches at the end. - separatorsToIndex
-
Control which non-alphanumeric characters are indexed. By default, Algolia ignores non-alphanumeric characters like hyphen (
-
), plus (+
), and parentheses ((
,)
). To include such characters, define them withseparatorsToIndex
. Separators are all non-letter characters except spaces and currency characters, such as $€£¥. WithseparatorsToIndex
, Algolia treats separator characters as separate words. For example, in a search for "Disney+", Algolia considers "Disney" and "+" as two separate words. - similarQuery
-
Keywords to be used instead of the search query to conduct a more broader search. Using the
similarQuery
parameter changes other settings: -queryType
is set toprefixNone
. -removeStopWords
is set to true. -words
is set as the first ranking criterion. - All remaining words are treated asoptionalWords
. Since thesimilarQuery
is supposed to do a broad search, they usually return many results. Combine it withfilters
to narrow down the list of results. - snippetEllipsisText
-
String used as an ellipsis indicator when a snippet is truncated.
- sortFacetValuesBy
-
Order in which to retrieve facet values. -
count
. Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. -alpha
. Retrieve facet values alphabetically. This setting doesn't influence how facet values are displayed in your UI (seerenderingContent
). For more information, see facet value display. - sumOrFiltersScores
-
Whether to sum all filter scores. If true, all filter scores are summed. Otherwise, the maximum filter score is kept. For more information, see filter scores.
- synonyms
-
Whether to take into account an index's synonyms for this search.
- unretrievableAttributes
-
Attributes that can't be retrieved at query time. This can be useful if you want to use an attribute for ranking or to restrict access, but don't want to include it in the search results. Attribute names are case-sensitive.
- userData
-
An object with custom data. You can store up to 32kB as custom data.
- userToken
-
Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For more information, see user token.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Response, taskID, and update timestamp.
Response, taskID, and update timestamp.
Value parameters
- taskID
-
Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task's progress with the
task
operation and thistaskID
. - updatedAt
-
Date and time when the object was updated, in RFC 3339 format.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
RecommendationsHit
RecommendationsHit
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RecommendationsHit.type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Known subtypes
-
class RecommendHitclass TrendingFacetHit
RecommendationsHits
RecommendationsHits
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
RecommendationsRequest
RecommendationsRequest
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class BoughtTogetherQueryclass LookingSimilarQueryclass RecommendedForYouQueryclass RelatedQueryclass TrendingFacetsQueryclass TrendingItemsQueryShow all
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Known subtypes
-
class BoughtTogetherQueryclass LookingSimilarQueryclass RecommendedForYouQueryclass RelatedQueryclass TrendingFacetsQueryclass TrendingItemsQueryShow all
RecommendationsResults
RecommendationsResults
Value parameters
- abTestID
-
A/B test ID. This is only included in the response for indices that are part of an A/B test.
- abTestVariantID
-
Variant ID. This is only included in the response for indices that are part of an A/B test.
- appliedRules
-
Rules applied to the query.
- aroundLatLng
-
Computed geographical location.
- automaticInsights
-
Whether automatic events collection is enabled for the application.
- automaticRadius
-
Distance from a central coordinate provided by
aroundLatLng
. - exhaustiveFacetsCount
-
See the
facetsCount
field of theexhaustive
object in the response. - exhaustiveNbHits
-
See the
nbHits
field of theexhaustive
object in the response. - exhaustiveTypo
-
See the
typo
field of theexhaustive
object in the response. - facets
-
Facet counts.
- facetsStats
-
Statistics for numerical facets.
- hitsPerPage
-
Number of hits per page.
- index
-
Index name used for the query.
- indexUsed
-
Index name used for the query. During A/B testing, the targeted index isn't always the index used by the query.
- message
-
Warnings about the query.
- nbHits
-
Number of results (hits).
- nbPages
-
Number of pages of results.
- nbSortedHits
-
Number of hits selected and sorted by the relevant sort algorithm.
- page
-
Page of search results to retrieve.
- parsedQuery
-
Post-normalization query string that will be searched.
- processingTimeMS
-
Time the server took to process the request, in milliseconds.
- processingTimingsMS
-
Experimental. List of processing steps and their times, in milliseconds. You can use this list to investigate performance issues.
- queryAfterRemoval
-
Markup text indicating which parts of the original query have been removed to retrieve a non-empty result set.
- queryID
-
Unique identifier for the query. This is used for click analytics.
- serverTimeMS
-
Time the server took to process the request, in milliseconds.
- serverUsed
-
Host name of the server that processed the request.
- userData
-
An object with custom data. You can store up to 32kB as custom data.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
RecommendedForYou
RecommendedForYou
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object RecommendedForYou
"Recommened for you" model.
"Recommened for you" model.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class CustomSerializer[RecommendedForYouModel]trait Serializer[RecommendedForYouModel]class Objecttrait Matchableclass Any
RecommendedForYouQuery
RecommendedForYouQuery
Value parameters
- indexName
-
Index name (case-sensitive).
- maxRecommendations
-
Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
- threshold
-
Minimum score a recommendation must have to be included in the response.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RecommendationsRequestclass Objecttrait Matchableclass AnyShow all
Redirect results to a URL, this this parameter is for internal use only.
Redirect results to a URL, this this parameter is for internal use only.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Redirect rule data.
Redirect rule data.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
RedirectRuleIndexMetadata
RedirectRuleIndexMetadata
Value parameters
- dest
-
Destination index for the redirect rule.
- reason
-
Reason for the redirect rule.
- source
-
Source index for the redirect rule.
- succeed
-
Redirect rule status.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
The redirect rule container.
The redirect rule container.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object RelatedProducts
Related products or similar content model. This model recommends items that are similar to the item with the ID objectID
. Similarity is determined from the user interactions and attributes.
Related products or similar content model. This model recommends items that are similar to the item with the ID objectID
. Similarity is determined from the user interactions and attributes.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RelatedModel.type
Attributes
- Supertypes
-
class CustomSerializer[RelatedModel]trait Serializer[RelatedModel]class Objecttrait Matchableclass Any
RelatedProducts
RelatedProducts
Value parameters
- objectID
-
Unique record identifier.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
RelatedQuery
RelatedQuery
Value parameters
- indexName
-
Index name (case-sensitive).
- maxRecommendations
-
Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
- objectID
-
Unique record identifier.
- threshold
-
Minimum score a recommendation must have to be included in the response.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RecommendationsRequestclass Objecttrait Matchableclass AnyShow all
Removes stop words from the search query. Stop words are common words like articles, conjunctions, prepositions, or pronouns that have little or no meaning on their own. In English, "the", "a", or "and" are stop words. You should only use this feature for the languages used in your index.
Removes stop words from the search query. Stop words are common words like articles, conjunctions, prepositions, or pronouns that have little or no meaning on their own. In English, "the", "a", or "and" are stop words. You should only use this feature for the languages used in your index.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class BooleanValueclass SeqOfSupportedLanguage
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RemoveStopWords.type
Attributes
- Supertypes
- Self type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Strategy for removing words from the query when it doesn't return any results. This helps to avoid returning empty search results. - none
. No words are removed when a query doesn't return results. - lastWords
. Treat the last (then second to last, then third to last) word as optional, until there are results or at most 5 words have been removed. - firstWords
. Treat the first (then second, then third) word as optional, until there are results or at most 5 words have been removed. - allOptional
. Treat all words as optional. For more information, see Remove words to improve results.
Strategy for removing words from the query when it doesn't return any results. This helps to avoid returning empty search results. - none
. No words are removed when a query doesn't return results. - lastWords
. Treat the last (then second to last, then third to last) word as optional, until there are results or at most 5 words have been removed. - firstWords
. Treat the first (then second, then third) word as optional, until there are results or at most 5 words have been removed. - allOptional
. Treat all words as optional. For more information, see Remove words to improve results.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class CustomSerializer[RemoveWordsIfNoResults]trait Serializer[RemoveWordsIfNoResults]class Objecttrait Matchableclass Any
Extra data that can be used in the search UI. You can use this to control aspects of your search UI, such as the order of facet names and values without changing your frontend code.
Extra data that can be used in the search UI. You can use this to control aspects of your search UI, such as the order of facet names and values without changing your frontend code.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Rule metadata.
Rule metadata.
Value parameters
- lastUpdate
-
Date and time when the object was updated, in RFC 3339 format.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
SearchPagination
SearchPagination
Value parameters
- hitsPerPage
-
Number of hits per page.
- nbHits
-
Number of results (hits).
- nbPages
-
Number of pages of results.
- page
-
Page of search results to retrieve.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
SearchParamsQuery
SearchParamsQuery
Value parameters
- query
-
Search query.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Recommend rules parameters.
Recommend rules parameters.
Value parameters
- context
-
Only search for rules with matching context.
- enabled
-
Whether to only show rules where the value of their
enabled
property matches this parameter. If absent, show all rules, regardless of theirenabled
property. - facets
-
Include facets and facet values in the response. Use
['*']
to include all facets. - filters
-
Filter expression. This only searches for rules matching the filter expression.
- hitsPerPage
-
Maximum number of hits per page. Algolia uses
page
andhitsPerPage
to control how search results are displayed (paginated). -hitsPerPage
: sets the number of search results (hits) displayed per page. -page
: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page ispage=0
, the second ispage=1
, and so on. For example, to display 10 results per page starting from the third page, sethitsPerPage
to 10 andpage
to 2. - maxValuesPerFacet
-
Maximum number of values to return for each facet.
- page
-
Requested page of the API response. Algolia uses
page
andhitsPerPage
to control how search results are displayed (paginated). -hitsPerPage
: sets the number of search results (hits) displayed per page. -page
: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page ispage=0
, the second ispage=1
, and so on. For example, to display 10 results per page starting from the third page, sethitsPerPage
to 10 andpage
to 2. - query
-
Search query.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
SearchRecommendRulesResponse
SearchRecommendRulesResponse
Value parameters
- hits
-
Recommend rules that match the search criteria.
- nbHits
-
Number of results (hits).
- nbPages
-
Number of pages of results.
- page
-
Page of search results to retrieve.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
SnippetResult
SnippetResult
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class MapOfStringSnippetResultclass SeqOfSnippetResulttrait SnippetResultTraitclass SnippetResultOption
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SnippetResult.type
Snippets that show the context around a matching search query.
Snippets that show the context around a matching search query.
Value parameters
- value
-
Highlighted attribute value, including HTML tags.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SnippetResultTraittrait SnippetResultclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Known subtypes
-
class SnippetResultOption
Order of facet values that aren't explicitly positioned with the order
setting. - count
. Order remaining facet values by decreasing count. The count is the number of matching records containing this facet value. - alpha
. Sort facet values alphabetically. - hidden
. Don't show facet values that aren't explicitly positioned.
Order of facet values that aren't explicitly positioned with the order
setting. - count
. Order remaining facet values by decreasing count. The count is the number of matching records containing this facet value. - alpha
. Sort facet values alphabetically. - hidden
. Don't show facet values that aren't explicitly positioned.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SortRemainingBy.type
Attributes
- Supertypes
-
class CustomSerializer[SortRemainingBy]trait Serializer[SortRemainingBy]class Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Afobject Arobject Azobject Bgobject Bnobject Caobject Csobject Cyobject Daobject Deobject Elobject Enobject Eoobject Esobject Etobject Euobject Faobject Fiobject Foobject Frobject Gaobject Globject Heobject Hiobject Huobject Hyobject Idobject Isobject Itobject Jaobject Kaobject Kkobject Koobject Kuobject Kyobject Ltobject Lvobject Miobject Mnobject Mrobject Msobject Mtobject Nbobject Nlobject Noobject Nsobject Plobject Psobject Ptobject PtBrobject Quobject Roobject Ruobject Skobject Sqobject Svobject Swobject Taobject Teobject Thobject Tlobject Tnobject Trobject Ttobject Ukobject Urobject Uzobject ZhShow all
ISO code for a supported language.
ISO code for a supported language.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SupportedLanguage.type
Attributes
- Supertypes
-
class CustomSerializer[SupportedLanguage]trait Serializer[SupportedLanguage]class Objecttrait Matchableclass Any
Filter the search by values of the special _tags
attribute. Prefer using the filters
parameter, which supports all filter types and combinations with boolean operators. Different from regular facets, _tags
can only be used for filtering (including or excluding records). You won't get a facet count. The same combination and escaping rules apply as for facetFilters
.
Filter the search by values of the special _tags
attribute. Prefer using the filters
parameter, which supports all filter types and combinations with boolean operators. Different from regular facets, _tags
can only be used for filtering (including or excluding records). You won't get a facet count. The same combination and escaping rules apply as for facetFilters
.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SeqOfTagFiltersclass StringValue
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TagFilters.type
Attributes
- Supertypes
- Self type
-
TagFiltersSerializer.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object NotPublishedobject Published
Task status, published
if the task is completed, notPublished
otherwise.
Task status, published
if the task is completed, notPublished
otherwise.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TaskStatus.type
Attributes
- Supertypes
-
class CustomSerializer[TaskStatus]trait Serializer[TaskStatus]class Objecttrait Matchableclass Any
TimeRange
TimeRange
Value parameters
- from
-
When the rule should start to be active, in Unix epoch time.
- until
-
When the rule should stop to be active, in Unix epoch time.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Trending facet hit.
Trending facet hit.
Value parameters
- facetName
-
Facet attribute. To be used in combination with
facetValue
. If specified, only recommendations matching the facet filter will be returned. - facetValue
-
Facet value. To be used in combination with
facetName
. If specified, only recommendations matching the facet filter will be returned. - score
-
Recommendation score.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RecommendationsHitTraittrait RecommendationsHitclass Objecttrait Matchableclass AnyShow all
TrendingFacets
TrendingFacets
Value parameters
- facetName
-
Facet attribute for which to retrieve trending facet values.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object TrendingFacets
Trending facet values model. This model recommends trending facet values for the specified facet attribute.
Trending facet values model. This model recommends trending facet values for the specified facet attribute.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TrendingFacetsModel.type
Attributes
- Supertypes
-
class CustomSerializer[TrendingFacetsModel]trait Serializer[TrendingFacetsModel]class Objecttrait Matchableclass Any
TrendingFacetsQuery
TrendingFacetsQuery
Value parameters
- facetName
-
Facet attribute for which to retrieve trending facet values.
- indexName
-
Index name (case-sensitive).
- maxRecommendations
-
Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
- threshold
-
Minimum score a recommendation must have to be included in the response.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RecommendationsRequestclass Objecttrait Matchableclass AnyShow all
TrendingItems
TrendingItems
Value parameters
- facetName
-
Facet attribute. To be used in combination with
facetValue
. If specified, only recommendations matching the facet filter will be returned. - facetValue
-
Facet value. To be used in combination with
facetName
. If specified, only recommendations matching the facet filter will be returned.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object TrendingItems
Trending items model. Trending items are determined from the number of conversion events collected on them.
Trending items model. Trending items are determined from the number of conversion events collected on them.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TrendingItemsModel.type
Attributes
- Supertypes
-
class CustomSerializer[TrendingItemsModel]trait Serializer[TrendingItemsModel]class Objecttrait Matchableclass Any
TrendingItemsQuery
TrendingItemsQuery
Value parameters
- facetName
-
Facet attribute. To be used in combination with
facetValue
. If specified, only recommendations matching the facet filter will be returned. - facetValue
-
Facet value. To be used in combination with
facetName
. If specified, only recommendations matching the facet filter will be returned. - indexName
-
Index name (case-sensitive).
- maxRecommendations
-
Maximum number of recommendations to retrieve. By default, all recommendations are returned and no fallback request is made. Depending on the available recommendations and the other request parameters, the actual number of recommendations may be lower than this value.
- threshold
-
Minimum score a recommendation must have to be included in the response.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RecommendationsRequestclass Objecttrait Matchableclass AnyShow all
Whether typo tolerance is enabled and how it is applied. If typo tolerance is true, min
, or strict
, word splitting and concatenation are also active.
Whether typo tolerance is enabled and how it is applied. If typo tolerance is true, min
, or strict
, word splitting and concatenation are also active.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TypoTolerance.type
Attributes
- Companion
- object
- Supertypes
- Known subtypes
min
. Return matches with the lowest number of typos. For example, if you have matches without typos, only include those. But if there are no matches without typos (with 1 typo), include matches with 1 typo (2 typos). -strict
. Return matches with the two lowest numbers of typos. Withstrict
, the Typo ranking criterion is applied first in theranking
setting.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TypoToleranceEnum.type
Attributes
- Supertypes
-
class CustomSerializer[TypoToleranceEnum]trait Serializer[TypoToleranceEnum]class Objecttrait Matchableclass Any
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Known subtypes
Value
Value
Value parameters
- hide
-
Hide facet values.
- order
-
Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
widgets returned from any rules that are applied to the current search.
widgets returned from any rules that are applied to the current search.
Value parameters
- banners
-
banners defined in the merchandising studio for the given search.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all