camelCaseAttributes
[]
'camelCaseAttributes' => [ 'attribute', ... ]
Can be used in these methods:
setSettings
set_settings
setSettings
set_settings
setSettings
setSettings
SetSettings
setSettings
SetSettings
setSettings
About this parameter
List of attributes for which to split camel case words.
Camel case compounds are words glued together without spaces or punctuation.
If you have attributes formatted in camel case, you can use this parameter to split the compound into individual words. For example, this would allow users to find “camelCaseAttributes” when searching for “case”. Attribute names are case-sensitive.
While there’s no limit to the number of attributes, adding too many attributes can slow down calls to getSettings
and reduce the responsiveness of Algolia’s dashboard.
Examples
Set the attributes to enable camel case decomposition
1
2
3
4
5
$index->setSettings([
'camelCaseAttributes' => [
'description'
]
]);