Gets or sets the custom word splitter that was used for indexing. The default value is null.
publicIWordSplitterWordSplitter{get;set;}
Property Value
The custom word splitter that was used for indexing (see WordSplitter), or null to divide the text into words by the built-in division, as the index does without a word splitter.
Remarks
The highlighting divides the text of the document into words by this splitter, whether the text is read from the index or the document is extracted again, and highlights the words of the splitter as the index has them: a document that was indexed with a word splitter is highlighted with the same splitter. Without it, the words that the built-in division does not give, for example the words of a text without spaces, are not highlighted.
The text is generated whole: a word of the splitter is looked for in the text after the words before it, and the text between the words is kept. A word that the text does not have there, for example a word that the splitter has changed or a word that overlaps the word before it, is not highlighted. An index that stores the texts of the documents (see TextStorageSettings) stores the whole text of a document that was indexed with a word splitter. An index of an earlier version stored only the words that the splitter gave, without the text between them, for example the spaces: the highlighting of such a document does not have that text until the document is indexed again.
The splitter cannot be sent to the nodes of a search network: the options with a splitter cannot be serialized, as with CustomExtractor, and the highlighting of a search network throws ArgumentException.