snippetLength

Sets the maximum number of preview characters (i.e. the search result snippet length) that are extracted with every search result. Setting the snippet length to 0 turns off snippet extraction, which performs better and is thus recommended if no snippets are required. If the search term exceeds the snippet length, the resulting snippet may be longer than the configured snippet length.

Parameters

snippetLength

Maximum number of snippet characters. Defaults to {@value * #DEFAULT_SNIPPET_LENGTH}. May be 0 to turn off snippet extraction.