🎉 Try the public beta of the new docs site at algolia.com/doc-beta! 🎉
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”.

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