UnwrappingReuseStrategy

A org.gnit.lucenekmp.analysis.Analyzer.ReuseStrategy that checks the wrapped analyzer's strategy for reusability. If the wrapped analyzer's strategy returns null, components need to be re-created.

Constructors

Link copied to clipboard
constructor(reuseStrategy: Analyzer.ReuseStrategy)

Functions

Link copied to clipboard
open override fun getReusableComponents(analyzer: Analyzer, fieldName: String): Analyzer.TokenStreamComponents?

Gets the reusable TokenStreamComponents for the field with the given name.

Link copied to clipboard
open override fun setReusableComponents(analyzer: Analyzer, fieldName: String, components: Analyzer.TokenStreamComponents)

Stores the given TokenStreamComponents as the reusable components for the field with the give name.