Annotation Type DocSortable


@Target(FIELD) @Retention(RUNTIME) public @interface DocSortable
Used to indicate that a particular string property should support sorting. What this typically means is that for ElasticSearch an additional 'raw' field is added that stores the un-analysed value. This un-analysed value can be used for sorting etc and the original field used for text searching.

For example, customer name and product name are good candidates for marking with @DocSortable.

  • Optional Element Summary

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

    • 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
    • nullValue

      String nullValue
      Set a value to use instead of null.
      Default:
      ""