public callSnippets ( string $index, string | array $source, string $match, array $options = [] ) | ||
$index | string | name of the index, from which to take the text processing settings. |
$source | string | array | is the source data to extract a snippet from. It could be either a single string or array of strings. |
$match | string | the full-text query to build snippets for. |
$options | array | list of options in format: optionName => optionValue |