API Reference / API Parameters / camelCaseAttributes
Type: list of strings
Engine default: []
Parameter syntax
'camelCaseAttributes' => [
  'attribute',
  ...
]

Can be used in these methods:

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'
  ]
]);
Did you find this page helpful?