public interface Discriminator
Modifier and Type | Method and Description |
---|---|
String |
getAnalyzerDefinitionName(Object value,
Object entity,
String field)
Allows to specify the analyzer to be used for the given field based on the specified entity state.
|
String getAnalyzerDefinitionName(Object value, Object entity, String field)
value
- The value of the field the @AnalyzerDiscriminator
annotation was placed on. null
if the annotation was placed on class level.entity
- The entity to be indexed.field
- The document field.field
or null
if the
default analyzer for this field should be used.AnalyzerDef
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved