Annotation Type DocCode


  • @Target(FIELD)
    @Retention(RUNTIME)
    public @interface DocCode
    Used to indicate that a particular string property should be treated as a 'code' and not analysed for text searching.

    By default all Id properties and all Enum properties are treated as 'code' and not analysed.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      float boost
      Set a boost value specific to this property.
      String nullValue
      Set a value to use instead of null.
      boolean store
      Set to true to have the property additionally stored separately from _source.
    • Element Detail

      • store

        boolean store
        Set to true to have the property additionally stored separately from _source.
        Default:
        false
      • boost

        float boost
        Set a boost value specific to this property.
        Default:
        1.0f