Snippets management
Snippets are selected excerpts from a given field, giving some sense of context to the person reading the search results. The default settings in the OSS engine are industry standards, but they can of course be tweaked.
Simply choose which fields will be used to generate snippets from the drop down menu, then set their individual parameters as follow.
Contents |
Fragmenter
The fragmenter is the algorithm determining where the snippet will start, and where the snippet will end. By order of increasing complexity:
- NoFragmenter indiscriminately quotes the field from its beginning.
- SizeFragmenter centres the snippet on the target terms, then extends the snippet rightward and leftward until it hits the maximum allowed size.
- SentenceFragmenter centres the snippet on the target terms, then extends the snippet rightward and leftward in a way that strives to preserve the sentences in the text.
Maximum snippet size
The size is expressed in number of characters.
Tag
When returning snippets, the OSS will engine will bracket the target terms with HTML tags - by default b (bolded text) tags. Human users can thus spot the words they need faster.
Separator
The character string the OSS engine will insert between the sentence fragments that make up a snippet. By default, this will be an ellipsis (...)
Max snippet numbers
Maximum number of snippets that will be excerpted from this field when generating results.
Max field size
The maximum number of chars that will be parsed by the snippet generator.
