You can minimize the performance impact of snippeting by limiting the number of words in a property that the MDEX Engine evaluates to identify the snippet.

This approach is especially useful in cases where a snippet-enabled property stores large amounts of text. Provide the --snip_cutoff <num words> flag to the Dgraph to restrict the number of words that the MDEX Engine evaluates in a property. For example, --snip_cutoff 300 evaluates the first 300 words of the property to identify the snippet.

If the --snip_cutoff Dgraph flag is not specified, or is specified without a value, the snippeting feature defaults to a cutoff value of 500 words.


Copyright © Legal Notices