By browsing on this website you are agreeing to our 'Terms & Conditions' and the 'Privacy Policy' in regards to your rights and personal data handling.
Highlighting can be a great feature for increasing search UX. To take leverage of it use Highlight method which is a part of query customizations available from Customize.
Syntax
IDocumentQueryCustomization Highlight(
string fieldName,
int fragmentLength,
int fragmentCount,
string fragmentsField);
IDocumentQueryCustomization Highlight(
string fieldName,
int fragmentLength,
int fragmentCount,
out FieldHighlightings highlightings);
Parameters
fieldName
string
Name of a field to highlight.
fragmentLength
int
Maximum length of text fragments that will be returned.
fragmentCount
int
Maximum number of fragments that will be returned.
fragmentsField
string
Field in returned results containing highlight fragments (mutually exclusive with 'highlightings').