org.hibernate.search.annotations

## Annotation Type NormalizerDef

-     @Retention(value=RUNTIME)
       @Target(value={PACKAGE,TYPE,FIELD,METHOD})
       @Documented
       @Repeatable(value=NormalizerDefs.class)
      public @interface NormalizerDef

  Reusable normalizer definition.

  A normalizer definition defines one or more filters, but on contrary to analyzer it doesn't include any tokenizer. On top of that, filters should not perform any kind of tokenization. This allows normalizer to be used on fields where we only want a single indexed value, such as sortable fields.

  Hibernate Search will try to validate that no tokenization is performed at runtime.

  Filters are applied in the order they are defined.

  Author:
    Emmanuel Bernard

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `String` | `name`

  - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `CharFilterDef[]` | `charFilters`
    `TokenFilterDef[]` | `filters`

- - ### Element Detail

    - #### name

          public abstract String name

      Returns:
        Reference name to be used on `Normalizer`

  - - #### charFilters

          public abstract CharFilterDef[] charFilters

      Returns:
        CharFilters used. The filters are applied in the defined order
      Default:
        {}

  - - #### filters

          public abstract TokenFilterDef[] filters

      Returns:
        Filters used. The filters are applied in the defined order
      Default:
        {}

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved