API Reference / API Parameters / camelCaseAttributes
Jan. 14, 2019

camelCaseAttributes

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

Can be used in these methods:

About this parameter

List of attributes on which to do a decomposition of camel case words.

Camel case compounds are basically words glued together, and being able to find a camel case compound when searching for one of its words often makes sense. This setting automatically splits camel case compounds into separate words and allows for example to find "camelCaseAttributes" when searching for "case".

Examples

Set the attributes to enable camel case decomposition

1
2
3
4
5
$index->setSettings([
  'camelCaseAttributes' => [
    'description'
  ]
]);

Did you find this page helpful?