minWordSizefor2Typos

Type: integer
Engine default: 8
Formerly: minWordSizeForApprox2
Parameter syntax
'minWordSizefor2Typos' => min_word_size
Parameter syntax
minWordSizefor2Typos: min_word_size
Parameter syntax
minWordSizefor2Typos: min_word_size
Parameter syntax
'minWordSizefor2Typos': min_word_size
Parameter syntax
"minWordSizefor2Typos": min_word_size
Parameter syntax
new JSONObject().put("minWordSizefor2Typos", min_word_size)
Parameter syntax
dynamic settings = new JObject();
settings.minWordSizefor2Typos= min_word_size;
Parameter syntax
.setMinWordSizefor2Typos(min_word_size)
Parameter syntax
"minWordSizefor2Typos": min_word_size
Parameter syntax
minWordSizefor2Typos= Some(min_word_size)

Can be used in these methods:
search, setSettings, browse, searchForFacetValues, generateSecuredApiKey, addApiKey, updateApiKey search, set_settings, browse, search_for_facet_values, generate_secured_api_key, add_api_key, update_api_key search, setSettings, browse, searchForFacetValues, generateSecuredApiKey, addApiKey, updateApiKey search, set_settings, browse, search_for_facet_values, generate_secured_api_key, add_api_key, update_api_key search, setSettings, browse, searchForFacetValues searchAsync, setSettingsAsync, browseAsync, searchForFacetValues Search, SetSettings, Browse, SearchForFacetValues, GenerateSecuredApiKey, AddApiKey, UpdateApiKey Search, setSettings, browse, searchForFacetValues, generateSecuredApiKey, addApiKey, updateApiKey Search, SetSettings, Browse, SearchForFacetValues, GenerateSecuredAPIKey, AddAPIKey, UpdateAPIKey search, changeSettings, browse index, search into facet values, generateSecuredApiKey, add key, update key

About this parameter

Minimum number of characters a word in the query string must contain to accept matches with 2 typos.

Examples

Set default min word size to allow 2 typo

<?php
$index->setSettings([
  'minWordSizefor2Typos' => 4
]);
index.set_settings({
  minWordSizefor2Typos: 4
})
index.setSettings({
  minWordSizefor2Typos: 4
});
index.set_settings({
  'minWordSizefor2Typos': 4
})
index.setSettings([
  "minWordSizefor2Typos": 4
])
index.setSettings(
  new JSONObject().put("minWordSizefor2Typos", 4)
);
dynamic settings = new JObject();
settings.minWordSizefor2Typos= 4;

index.SetSettings(settings);
index.setSettings(
  new IndexSettings().setMinWordSizefor2Typos(4)
);
res, err := index.SetSettings(algoliasearch.Map{
  "minWordSizefor2Typos": 4,
})
client.execute {
  changeSettings of "myIndex" `with` IndexSettings(
    minWordSizefor2Typos = Some(4)
  )
}
<?php
$results = $index->search('query', [
  'minWordSizefor2Typos' => 2
]);
results = index.search('query', {
  minWordSizefor2Typos: 2
})
index.search({
  query: 'query',
  minWordSizefor2Typos: 2
}).then(res => {
  // console.log(res);
});
results = index.search('query', {
  'minWordSizefor2Typos': 2
})
let query = Query(query: "query")
query.minWordSizefor2Typos = 2

index.search(query, completionHandler: { (res, error) in
  print(res)
})
index.search(
  new Query("query").setMinWordSizefor2Typos(2)
);
index.search(
  new Query("query").SetMinWordSizeToAllowTwoTypos(2)
);
index.search(
  new Query("query").setMinWordSizefor2Typos(2)
);
res, err := index.Search("query", algoliasearch.Map{
  "minWordSizefor2Typos": 2,
})
client.execute {
  search into "myIndex" query Query(
    query = Some("query"),
    minWordSizefor2Typos = Some(2)
  )
}
Php small white
PHP
Ruby small white
Ruby
Javascript small white
JavaScript
Python small white
Python
Swift small white
iOS
Android small white
Android
Csharp small white
C#
Java small white
Java
Go small white
Go
Scala small white
Scala
Php small white
PHP
Ruby small white
Ruby
Javascript small white
JavaScript
Python small white
Python
Swift small white
iOS
Android small white
Android
Csharp small white
C#
Java small white
Java
Go small white
Go
Scala small white
Scala