Package org.hibernate.search.analyzer
Interface Discriminator
public interface Discriminator
Returns the expected discriminator name to use on the element evaluated
-
Method Summary
Modifier and TypeMethodDescriptiongetAnalyzerDefinitionName(Object value, Object entity, String field) Allows to specify the analyzer to be used for the given field based on the specified entity state.
-
Method Details
-
getAnalyzerDefinitionName
Allows to specify the analyzer to be used for the given field based on the specified entity state.- Parameters:
value- The value of the field the@AnalyzerDiscriminatorannotation was placed on.nullif the annotation was placed on class level.entity- The entity to be indexed.field- The document field.- Returns:
- The name of a defined analyzer to be used for the specified
fieldornullif the default analyzer for this field should be used. - See Also:
-