Skip to main content
Usage

Examples

Set the typo tolerance to false on the MOVIES index:

Advanced

Whether the best matching attribute should be determined by minimum proximity. See: attributeCriteriaComputedByMinProximity
Determines how many records of a group are included in the search results. See: distinct
Maximum number of facet values to return when searching for facet values. See: maxFacetHits
Minimum proximity score for two matching words. See: minProximity
Extra data that can be used in the search UI. See: renderingContent
Properties to include in the API response of search and browse requests. See: responseFields
An object with custom data. See: userData

Attributes

Attributes to include in the API response. See: attributesToRetrieve
Attributes used for searching. Attribute names are case-sensitive. See: searchableAttributes
Attributes that can’t be retrieved at query time. See: unretrievableAttributes

Faceting

Attributes used for faceting. See: attributesForFaceting
Maximum number of facet values to return for each facet. See: maxValuesPerFacet
Order in which to retrieve facet values. See: sortFacetValuesBy

Filtering

Whether this search will use Dynamic Re-Ranking. See: enableReRanking

Highlighting and Snippeting

Attributes to highlight. See: attributesToHighlight
Attributes for which to enable snippets. See: attributesToSnippet
HTML tag to insert after the highlighted parts in all highlighted results and snippets. See: highlightPostTag
HTML tag to insert before the highlighted parts in all highlighted results and snippets. See: highlightPreTag
Whether to replace a highlighted word with the matched synonym. See: replaceSynonymsInHighlight
Whether to restrict highlighting and snippeting to items that at least partially matched the search query. See: restrictHighlightAndSnippetArrays
String used as an ellipsis indicator when a snippet is truncated. See: snippetEllipsisText

Languages

Attributes, for which you want to support Japanese transliteration. See: attributesToTransliterate
Attributes for which to split camel case words. See: camelCaseAttributes
Characters and their normalized replacements. See: customNormalization
Whether to split compound words in the query into their building blocks. See: decompoundQuery
Searchable attributes to which Algolia should apply word segmentation (decompounding). See: decompoundedAttributes
Treat singular, plurals, and other forms of declensions as equivalent. See: ignorePlurals
Languages for language-specific processing steps, such as word detection and dictionary settings. See: indexLanguages
Characters for which diacritics should be preserved. See: keepDiacriticsOnCharacters
Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. See: queryLanguages
Removes stop words from the search query. See: removeStopWords

Other flags

Attribute that should be used to establish groups of results. See: attributeForDistinct
Whether to apply settings changes also to replicas
Words that should be considered optional when found in the query. See: optionalWords
Maximum number of search results that can be obtained through pagination. See: paginationLimitedTo
Restrict Dynamic Re-Ranking to records that match these filters.
Settings for the semantic search part of NeuralSearch.
Wait for the operation to complete

Output formatting flags

If true, ignore errors in templates due to missing fields or map keys. This only applies to golang and jsonpath output formats.
Output format. One of: (json, jsonl, ndjson, jsonpath, jsonpath-as-json, jsonpath-file).
Template string or path to a template file to use when —output=jsonpath, —output=jsonpath-file.

Pagination

Number of hits per page. See: hitsPerPage

Performance

Whether arrays with exclusively non-negative integers should be compressed for better performance. See: allowCompressionOfIntegerArray
Numeric attributes that can be used as numerical filters. See: numericAttributesForFiltering

Personalization

Whether to enable Personalization. See: enablePersonalization

Query strategy

Whether to support phrase matching and excluding words from search queries. See: advancedSyntax
Advanced search syntax features you want to support. See: advancedSyntaxFeatures
Determine which plurals and synonyms should be considered an exact matches. See: alternativesAsExact
Searchable attributes for which you want to turn off the Exact ranking criterion. See: disableExactOnAttributes
Searchable attributes for which you want to turn off prefix matching. See: disablePrefixOnAttributes
Determines how the Exact ranking criterion is computed when the search query has only one word. One of: attribute, none, word. See: exactOnSingleWordQuery
Search mode the index will use to query for results. One of: neuralSearch, keywordSearch. See: mode
Determines if and how query words are interpreted as prefixes. One of: prefixLast, prefixAll, prefixNone. See: queryType
Strategy for removing words from the query when it doesn’t return any results. One of: none, lastWords, firstWords, allOptional. See: removeWordsIfNoResults

Ranking

Attributes to use as custom ranking. See: customRanking
Determines the order in which Algolia returns your results. See: ranking
Relevancy threshold below which less relevant results aren’t included in the results. See: relevancyStrictness
Creates replica indices. See: replicas

Rules

Whether to enable rules. See: enableRules

Typos

Whether to allow typos on numbers in the search query. See: allowTyposOnNumericTokens
Attributes for which you want to turn off typo tolerance. See: disableTypoToleranceOnAttributes
Creates a list of words which require exact matches. See: disableTypoToleranceOnWords
Minimum number of characters a word in the search query must contain to accept matches with one typo. See: minWordSizefor1Typo
Minimum number of characters a word in the search query must contain to accept matches with two typos. See: minWordSizefor2Typos
Control which non-alphanumeric characters are indexed. See: separatorsToIndex
Whether typo tolerance is enabled and how it is applied. See: typoTolerance
Last modified on July 15, 2026