The snippeting feature provides the ability to return an excerpt from a record — called a snippet — to an application user who performs a record search query.
A snippet contains the search terms that the user provided, along with a portion of the term’s surrounding content to provide context. With the added context, users can more quickly choose the individual records they are interested in.
A snippet can be based on the term itself or on any thesaurus or spell-correction equivalents. At least one instance of a term or equivalent is highlighted per snippet, regardless of the number of times the term or its equivalents appear in the snippet. A thesaurus or spell-corrected alternative may be highlighted instead of the term itself, even if both appear within the snippet.
You enable snippeting on individual members (fields) in a search interface that typically have many lines of content. For example, fields such as Description, Abstract, DocumentBody, and so on are good candidates to provide snippeting results. You can also enable snippeting on a per-query basis.
The result of a query with snippeting enabled contains at least one snippet in which enough terms are highlighted to satisfy the user's query. That is, if it is an AND query, the result contains at least one of each term, and if it is an OR query, it contains at least one of the alternatives.
In Studio, only the Data Explorer, Results List, and Results Table components support snippeting. On these components, for attributes that support snippeting, when users perform a search, the search snippet is displayed.