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”.
There’s no limit to the number of attributes in the list, but having many attributes slows down calls to getSettings
. This can make the Algolia dashboard slower and less responsive.
Examples
Set the attributes to enable camel case decomposition
1
2
3
4
5
$index->setSettings([
'camelCaseAttributes' => [
'description'
]
]);