concept FastVectorHighlighter in category solr

This is an excerpt from Manning's book Solr in Action.
It should be mentioned that we were not able to find a case with the UFO sightings dataset where the default highlighter was too slow. Using an informal benchmark of sending thousands of randomly generated queries, the default highlighter was always extremely fast, even when using an unusually large page size of 50. If you have much larger documents or are highlighting many fields, you could run into a slowdown. Although we say FastVectorHighlighter can help if the default is too slow, this does not imply that the default will be too slow for your data.
The FastVectorHighlighter still needs access to term position and offset information to do highlighting, so it relies on using information computed during indexing time. Therefore, to use FastVectorHighlighter, any field that needs to be highlighted must be indexed with termVectors, termPositions, and termOffsets enabled. To enable FastVectorHighlighter for our sighting_en field, we would need to define it as