WithTextExtraction

Text extraction is the process by which fragments of text are lifted from a larger body of text prior to tokenization.

For example, the text being indexed may be an XML or HTML document and you may only want to index the text content of the elements:

var index = new FullTextIndexBuilder<int>()
    .WithTextExtraction<XmlTextExtractor>()
    .Build();

Text extraction is only applied when indexing text, i.e. calls to the IFullTextIndex.AddAsync overloads. When searching, text extraction is never applied to any query text.

Last modified July 24, 2020: Updating documentation (4f7abd8)