org.hibernate.search.annotations

## Annotation Type AnalyzerDef

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

  Reusable analyzer definition. An analyzer definition defines:
  - one tokenizer
  - optionally one or more filters
  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`
    `TokenizerDef` | `tokenizer`

  - ### 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 {#org.hibernate.search.annotations.Analyzer}

  - - #### tokenizer

          public abstract TokenizerDef tokenizer

      Returns:
        Tokenizer used.

  - - #### 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