org.hibernate.search.annotations

## Annotation Type NumericField

-     @Retention(value=RUNTIME)
       @Target(value={METHOD,FIELD})
       @Documented
       @Repeatable(value=NumericFields.class)
      public @interface NumericField

  Extension annotation for `@Field` supporting Lucene's numeric field feature.
  Author:
    Gustavo Fernandes

- - ### Field Summary

    Fields
    Modifier and Type | Fields and Description
    --- | ---
    `static int` | `PRECISION_STEP_DEFAULT` Default precision step, mimicking Lucene's default precision step value.

  - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String` | `forField`
    `int` | `precisionStep`

- - ### Field Detail

    - #### PRECISION_STEP_DEFAULT

          public static final int PRECISION_STEP_DEFAULT

      Default precision step, mimicking Lucene's default precision step value.

  - ### Element Detail

    - #### precisionStep

          public abstract int precisionStep

      Returns:
        Precision step for numeric field. The less, more terms will be present in the index.
      Default:
        4

  - - #### forField

          public abstract String forField

      Returns:
        Field name this annotation refers to. If omitted, refers to the @Field annotation in case there's only one
      Default:
        ""

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