> ## Documentation Index
> Fetch the complete documentation index at: https://algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# algolia settings set

> Specify index settings.

```txt Usage theme={"system"}
algolia settings set <index> [flags]
```

## Examples

Set the typo tolerance to false on the MOVIES index:

```sh icon=square-terminal theme={"system"}
algolia settings set MOVIES --typoTolerance="false"
```

## Advanced

<ParamField body="--attributeCriteriaComputedByMinProximity">
  Whether the best matching attribute should be determined by minimum proximity.
  See: [`attributeCriteriaComputedByMinProximity`](/doc/api-reference/api-parameters/attributeCriteriaComputedByMinProximity)
</ParamField>

<ParamField body="--distinct">
  Determines how many records of a group are included in the search results.
  See: [`distinct`](/doc/api-reference/api-parameters/distinct)
</ParamField>

<ParamField body="--maxFacetHits">
  Maximum number of facet values to return when searching for facet values.
  See: [`maxFacetHits`](/doc/api-reference/api-parameters/maxFacetHits)
</ParamField>

<ParamField body="--minProximity">
  Minimum proximity score for two matching words.
  See: [`minProximity`](/doc/api-reference/api-parameters/minProximity)
</ParamField>

<ParamField body="--renderingContent">
  Extra data that can be used in the search UI.
  See: [`renderingContent`](/doc/api-reference/api-parameters/renderingContent)
</ParamField>

<ParamField body="--responseFields">
  Properties to include in the API response of search and browse requests.
  See: [`responseFields`](/doc/api-reference/api-parameters/responseFields)
</ParamField>

<ParamField body="--userData">
  An object with custom data.
  See: [`userData`](/doc/api-reference/api-parameters/userData)
</ParamField>

## Attributes

<ParamField body="--attributesToRetrieve">
  Attributes to include in the API response.
  See: [`attributesToRetrieve`](/doc/api-reference/api-parameters/attributesToRetrieve)
</ParamField>

<ParamField body="--searchableAttributes">
  Attributes used for searching. Attribute names are case-sensitive.
  See: [`searchableAttributes`](/doc/api-reference/api-parameters/searchableAttributes)
</ParamField>

<ParamField body="--unretrievableAttributes">
  Attributes that can't be retrieved at query time.
  See: [`unretrievableAttributes`](/doc/api-reference/api-parameters/unretrievableAttributes)
</ParamField>

## Faceting

<ParamField body="--attributesForFaceting">
  Attributes used for faceting.
  See: [`attributesForFaceting`](/doc/api-reference/api-parameters/attributesForFaceting)
</ParamField>

<ParamField body="--maxValuesPerFacet">
  Maximum number of facet values to return for each facet.
  See: [`maxValuesPerFacet`](/doc/api-reference/api-parameters/maxValuesPerFacet)
</ParamField>

<ParamField body="--sortFacetValuesBy">
  Order in which to retrieve facet values.
  See: [`sortFacetValuesBy`](/doc/api-reference/api-parameters/sortFacetValuesBy)
</ParamField>

## Filtering

<ParamField body="--enableReRanking">
  Whether this search will use Dynamic Re-Ranking.
  See: [`enableReRanking`](/doc/api-reference/api-parameters/enableReRanking)
</ParamField>

## Highlighting and Snippeting

<ParamField body="--attributesToHighlight">
  Attributes to highlight.
  See: [`attributesToHighlight`](/doc/api-reference/api-parameters/attributesToHighlight)
</ParamField>

<ParamField body="--attributesToSnippet">
  Attributes for which to enable snippets.
  See: [`attributesToSnippet`](/doc/api-reference/api-parameters/attributesToSnippet)
</ParamField>

<ParamField body="--highlightPostTag">
  HTML tag to insert after the highlighted parts in all highlighted results and snippets.
  See: [`highlightPostTag`](/doc/api-reference/api-parameters/highlightPostTag)
</ParamField>

<ParamField body="--highlightPreTag">
  HTML tag to insert before the highlighted parts in all highlighted results and snippets.
  See: [`highlightPreTag`](/doc/api-reference/api-parameters/highlightPreTag)
</ParamField>

<ParamField body="--replaceSynonymsInHighlight">
  Whether to replace a highlighted word with the matched synonym.
  See: [`replaceSynonymsInHighlight`](/doc/api-reference/api-parameters/replaceSynonymsInHighlight)
</ParamField>

<ParamField body="--restrictHighlightAndSnippetArrays">
  Whether to restrict highlighting and snippeting to items that at least partially matched the search query.
  See: [`restrictHighlightAndSnippetArrays`](/doc/api-reference/api-parameters/restrictHighlightAndSnippetArrays)
</ParamField>

<ParamField body="--snippetEllipsisText">
  String used as an ellipsis indicator when a snippet is truncated.
  See: [`snippetEllipsisText`](/doc/api-reference/api-parameters/snippetEllipsisText)
</ParamField>

## Languages

<ParamField body="--attributesToTransliterate">
  Attributes, for which you want to support Japanese transliteration.
  See: [`attributesToTransliterate`](/doc/api-reference/api-parameters/attributesToTransliterate)
</ParamField>

<ParamField body="--camelCaseAttributes">
  Attributes for which to split camel case words.
  See: [`camelCaseAttributes`](/doc/api-reference/api-parameters/camelCaseAttributes)
</ParamField>

<ParamField body="--customNormalization">
  Characters and their normalized replacements.
  See: [`customNormalization`](/doc/api-reference/api-parameters/customNormalization)
</ParamField>

<ParamField body="--decompoundQuery">
  Whether to split compound words in the query into their building blocks.
  See: [`decompoundQuery`](/doc/api-reference/api-parameters/decompoundQuery)
</ParamField>

<ParamField body="--decompoundedAttributes">
  Searchable attributes to which Algolia should apply word segmentation (decompounding).
  See: [`decompoundedAttributes`](/doc/api-reference/api-parameters/decompoundedAttributes)
</ParamField>

<ParamField body="--ignorePlurals">
  Treat singular, plurals, and other forms of declensions as equivalent.
  See: [`ignorePlurals`](/doc/api-reference/api-parameters/ignorePlurals)
</ParamField>

<ParamField body="--indexLanguages">
  Languages for language-specific processing steps, such as word detection and dictionary settings.
  See: [`indexLanguages`](/doc/api-reference/api-parameters/indexLanguages)
</ParamField>

<ParamField body="--keepDiacriticsOnCharacters">
  Characters for which diacritics should be preserved.
  See: [`keepDiacriticsOnCharacters`](/doc/api-reference/api-parameters/keepDiacriticsOnCharacters)
</ParamField>

<ParamField body="--queryLanguages">
  Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries.
  See: [`queryLanguages`](/doc/api-reference/api-parameters/queryLanguages)
</ParamField>

<ParamField body="--removeStopWords">
  Removes stop words from the search query.
  See: [`removeStopWords`](/doc/api-reference/api-parameters/removeStopWords)
</ParamField>

## Other flags

<ParamField body="--attributeForDistinct">
  Attribute that should be used to establish groups of results.
  See: [`attributeForDistinct`](/doc/api-reference/api-parameters/attributeForDistinct)
</ParamField>

<ParamField body="-f, --forward-to-replicas">
  Whether to apply settings changes also to replicas
</ParamField>

<ParamField body="--optionalWords">
  Words that should be considered optional when found in the query.
  See: [`optionalWords`](/doc/api-reference/api-parameters/optionalWords)
</ParamField>

<ParamField body="--paginationLimitedTo">
  Maximum number of search results that can be obtained through pagination.
  See: [`paginationLimitedTo`](/doc/api-reference/api-parameters/paginationLimitedTo)
</ParamField>

<ParamField body="--reRankingApplyFilter">
  Restrict Dynamic Re-Ranking to records that match these filters.
</ParamField>

<ParamField body="--semanticSearch">
  Settings for the semantic search part of NeuralSearch.
</ParamField>

<ParamField body="-w, --wait">
  Wait for the operation to complete
</ParamField>

## Pagination

<ParamField body="--hitsPerPage">
  Number of hits per page.
  See: [`hitsPerPage`](/doc/api-reference/api-parameters/hitsPerPage)
</ParamField>

## Performance

<ParamField body="--allowCompressionOfIntegerArray">
  Whether arrays with exclusively non-negative integers should be compressed for better performance.
  See: [`allowCompressionOfIntegerArray`](/doc/api-reference/api-parameters/allowCompressionOfIntegerArray)
</ParamField>

<ParamField body="--numericAttributesForFiltering">
  Numeric attributes that can be used as numerical filters.
  See: [`numericAttributesForFiltering`](/doc/api-reference/api-parameters/numericAttributesForFiltering)
</ParamField>

## Personalization

<ParamField body="--enablePersonalization">
  Whether to enable Personalization.
  See: [`enablePersonalization`](/doc/api-reference/api-parameters/enablePersonalization)
</ParamField>

## Query strategy

<ParamField body="--advancedSyntax">
  Whether to support phrase matching and excluding words from search queries.
  See: [`advancedSyntax`](/doc/api-reference/api-parameters/advancedSyntax)
</ParamField>

<ParamField body="--advancedSyntaxFeatures">
  Advanced search syntax features you want to support.
  See: [`advancedSyntaxFeatures`](/doc/api-reference/api-parameters/advancedSyntaxFeatures)
</ParamField>

<ParamField body="--alternativesAsExact">
  Determine which plurals and synonyms should be considered an exact matches.
  See: [`alternativesAsExact`](/doc/api-reference/api-parameters/alternativesAsExact)
</ParamField>

<ParamField body="--disableExactOnAttributes">
  Searchable attributes for which you want to turn off the Exact ranking criterion.
  See: [`disableExactOnAttributes`](/doc/api-reference/api-parameters/disableExactOnAttributes)
</ParamField>

<ParamField body="--disablePrefixOnAttributes">
  Searchable attributes for which you want to turn off prefix matching.
  See: [`disablePrefixOnAttributes`](/doc/api-reference/api-parameters/disablePrefixOnAttributes)
</ParamField>

<ParamField body="--exactOnSingleWordQuery">
  Determines how the Exact ranking criterion is computed when the search query has only one word. One of: attribute, none, word.
  See: [`exactOnSingleWordQuery`](/doc/api-reference/api-parameters/exactOnSingleWordQuery)
</ParamField>

<ParamField body="--mode">
  Search mode the index will use to query for results. One of: neuralSearch, keywordSearch.
  See: [`mode`](/doc/api-reference/api-parameters/mode)
</ParamField>

<ParamField body="--queryType">
  Determines if and how query words are interpreted as prefixes. One of: prefixLast, prefixAll, prefixNone.
  See: [`queryType`](/doc/api-reference/api-parameters/queryType)
</ParamField>

<ParamField body="--removeWordsIfNoResults">
  Strategy for removing words from the query when it doesn't return any results. One of: none, lastWords, firstWords, allOptional.
  See: [`removeWordsIfNoResults`](/doc/api-reference/api-parameters/removeWordsIfNoResults)
</ParamField>

## Ranking

<ParamField body="--customRanking">
  Attributes to use as custom ranking.
  See: [`customRanking`](/doc/api-reference/api-parameters/customRanking)
</ParamField>

<ParamField body="--ranking">
  Determines the order in which Algolia returns your results.
  See: [`ranking`](/doc/api-reference/api-parameters/ranking)
</ParamField>

<ParamField body="--relevancyStrictness">
  Relevancy threshold below which less relevant results aren't included in the results.
  See: [`relevancyStrictness`](/doc/api-reference/api-parameters/relevancyStrictness)
</ParamField>

<ParamField body="--replicas">
  Creates replica indices.
  See: [`replicas`](/doc/api-reference/api-parameters/replicas)
</ParamField>

## Rules

<ParamField body="--enableRules">
  Whether to enable rules.
  See: [`enableRules`](/doc/api-reference/api-parameters/enableRules)
</ParamField>

## Typos

<ParamField body="--allowTyposOnNumericTokens">
  Whether to allow typos on numbers in the search query.
  See: [`allowTyposOnNumericTokens`](/doc/api-reference/api-parameters/allowTyposOnNumericTokens)
</ParamField>

<ParamField body="--disableTypoToleranceOnAttributes">
  Attributes for which you want to turn off typo tolerance.
  See: [`disableTypoToleranceOnAttributes`](/doc/api-reference/api-parameters/disableTypoToleranceOnAttributes)
</ParamField>

<ParamField body="--disableTypoToleranceOnWords">
  Creates a list of words which require exact matches.
  See: [`disableTypoToleranceOnWords`](/doc/api-reference/api-parameters/disableTypoToleranceOnWords)
</ParamField>

<ParamField body="--minWordSizefor1Typo">
  Minimum number of characters a word in the search query must contain to accept matches with one typo.
  See: [`minWordSizefor1Typo`](/doc/api-reference/api-parameters/minWordSizefor1Typo)
</ParamField>

<ParamField body="--minWordSizefor2Typos">
  Minimum number of characters a word in the search query must contain to accept matches with two typos.
  See: [`minWordSizefor2Typos`](/doc/api-reference/api-parameters/minWordSizefor2Typos)
</ParamField>

<ParamField body="--separatorsToIndex">
  Control which non-alphanumeric characters are indexed.
  See: [`separatorsToIndex`](/doc/api-reference/api-parameters/separatorsToIndex)
</ParamField>

<ParamField body="--typoTolerance">
  Whether typo tolerance is enabled and how it is applied.
  See: [`typoTolerance`](/doc/api-reference/api-parameters/typoTolerance)
</ParamField>
