You can configure snippeting on a per query basis by using the
Ntx URL query parameter, the
snip operator of
Ntx, and key/value pairs that indicate which field to
snippet and how many words to return in a snippet. This section contains
examples of record search queries with snippeting.
Providing these values in a URL overrides any configuration options specified in a Developer Studio project file.
You can
disable snippeting on a per query basis by using the
nosnip+true operator of
Ntx. The
nosnip+true operator globally disables all snippets for
any search interface member you enabled.
Example 79. Examples of queries with snippeting
You can include snippeting only in record search operations. The following are examples of snippeting in queries:
In a record search for records containing the word
blue, snippet thedescriptionproperty with a maximum size of thirty words:N=0&Ntk=description&Ntt=blue&Ntx=snip+description:30
In a record search for records containing the words
shirtandblue, snippet thetitleproperty with a maximum size of ten words and thedescriptionproperty with a maximum size of thirty words:N=0&Ntk=title|description&Ntt=shirt|blue&Ntx=snip+title:10|snip+description:30
In a record search for records containing the word
blue, disable snippet results for the query:N=0&Ntk=description&Ntt=blue&Ntx=nosnip+true

