Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.search.analyzer
Interface Discriminator

    public interface Discriminator

Returns the expected discriminator name to use on the element evaluated

Author:
  Hardy Ferentschik

Method Summary
`java.lang.String` | `getAnalyzerDefinitionName(java.lang.Object value, java.lang.Object entity, java.lang.String field)` Allows to specify the analyzer to be used for the given field based on the specified entity state.

Method Detail

### getAnalyzerDefinitionName

    java.lang.String getAnalyzerDefinitionName(java.lang.Object value,
                                               java.lang.Object entity,
                                               java.lang.String field)

  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 `@AnalyzerDiscriminator` annotation was placed on. `null` if 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 `field` or `null` if the default analyzer for this field should be used.
  See Also:
    `AnalyzerDef`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2010 Hibernate. All Rights Reserved.