getReusableComponents

open override fun getReusableComponents(analyzer: Analyzer, fieldName: String): Analyzer.TokenStreamComponents?

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

Return

Reusable TokenStreamComponents for the field, or null if there was no previous components for the field

Parameters

analyzer

Analyzer from which to get the reused components. Use .getStoredValue and .setStoredValue to access the data on the Analyzer.

fieldName

Name of the field whose reusable TokenStreamComponents are to be retrieved