API Reference / API Parameters / snippetEllipsisText
Type: string
Engine default: "…" (U+2026)
Parameter syntax
'snippetEllipsisText' => "text"

Can be used in these methods:
search, setSettings, browseObjects, searchForFacetValues, generateSecuredApiKey, addApiKey, updateApiKey

About this parameter# A

String used as an ellipsis indicator when a snippet is truncated.

Usage notes#

  • Defaults to an empty string for all accounts created before February 10th, 2016.

  • Defaults to "…" (U+2026, HORIZONTAL ELLIPSIS) for accounts created after that date.

Examples# A

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