Package io.ebean.annotation
Annotation Type DocProperty
-
@Target(FIELD) @Retention(RUNTIME) public @interface DocProperty
Specify the entity type maps to a document store (like ElasticSearch).
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringanalyzerThe analyzer to use.floatboostSet a boost value specific to this property.booleancodeSet this to true to indicate that this property should be un-analysed.StringcopyToSet a copyTo field.booleandocValuesSet this to false such that doc values are not stored separately for this property.booleanenabledSet to false to disable the field from indexing, it will only be get/set in _source.booleanincludeInAllSet this to false to exclude this from the _all property.booleannormsSet to false such that norms are not stored.StringnullValueSet a value to use instead of null.DocProperty.OptionoptionsThe index options for this property.StringsearchAnalyzerThe analyzer to use for searches.booleansortableSet this to true to get an additional un-analysed 'raw' field to use for sorting etc.booleanstoreSet to true to have the property additionally stored separately from _source.
-
-
-
Element Detail
-
code
boolean code
Set this to true to indicate that this property should be un-analysed.- Default:
- false
-
-
-
sortable
boolean sortable
Set this to true to get an additional un-analysed 'raw' field to use for sorting etc.- Default:
- false
-
-
-
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
-
-
-
includeInAll
boolean includeInAll
Set this to false to exclude this from the _all property.- Default:
- true
-
-
-
searchAnalyzer
String searchAnalyzer
The analyzer to use for searches.- Default:
- ""
-
-
-
options
DocProperty.Option options
The index options for this property.- Default:
- io.ebean.annotation.DocProperty.Option.DEFAULT
-
-
-
docValues
boolean docValues
Set this to false such that doc values are not stored separately for this property.- Default:
- true
-
-
-
enabled
boolean enabled
Set to false to disable the field from indexing, it will only be get/set in _source.- Default:
- true
-
-
-
norms
boolean norms
Set to false such that norms are not stored.- Default:
- true
-
-