snippetEllipsisText
'snippetEllipsisText' => "text"
Can be used in these methods:
search,
setSettings,
browseObjects,
searchForFacetValues,
generateSecuredApiKey,
addApiKey,
updateApiKey
search,
set_settings,
browse_objects,
search_for_facet_values,
generate_secured_api_key,
add_api_key,
update_api_key
search,
setSettings,
browseObjects,
searchForFacetValues,
generateSecuredApiKey,
addApiKey,
updateApiKey
search,
set_settings,
browse_objects,
search_for_facet_values,
generate_secured_api_key,
add_api_key,
update_api_key
search,
setSettings,
browse,
searchForFacetValues,
generateSecuredApiKey,
addAPIKey,
updateAPIKey
search,
setSettings,
browseObjects,
searchForFacetValues,
generateSecuredApiKey,
addApiKey,
updateApiKey
Search,
SetSettings,
Browse,
SearchForFacetValues,
GenerateSecuredApiKey,
AddApiKey,
UpdateApiKey
Search,
setSettings,
browse,
searchForFacetValues,
generateSecuredApiKey,
addApiKey,
updateApiKey
Search,
SetSettings,
BrowseObjects,
SearchForFacetValues,
GenerateSecuredAPIKey,
AddAPIKey,
UpdateAPIKey
search,
setSettings,
browse index,
search into facet values,
generateSecuredApiKey,
add key,
update key
About this parameter
String used as an ellipsis indicator when a snippet is truncated.
Usage notes
-
Defaults to an empty string for all applications created before March 10th, 2016.
-
Defaults to
"…"
(U+2026, HORIZONTAL ELLIPSIS) for applications created after that date.
Indices created in 2021 and 2022 may have an incorrect default value.
To fix that, explicitly set the value for snippetEllipsisText
.
Examples
Set default snippet ellipsis text
1
2
3
$index->setSettings([
'snippetEllipsisText' => '…'
]);
Override default snippet ellipsis text for the current search
1
2
3
$results = $index->search('query', [
'snippetEllipsisText' => ''
]);