|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface SearchableBoostProperty
Specifies a Searchable class field/property that dynamically
controls boost value of the class mapped based on its value.
The value of the field should be allowed to be converted to a float value.
| Optional Element Summary | |
|---|---|
String |
accessor
The property accessor that will be fetch and write the property value. |
String |
converter
The converter lookup name that will be used to convert the field/property into a float boost value. |
float |
defaultValue
The default value if this property is null. |
public abstract float defaultValue
public abstract String converter
public abstract String accessor
It is automatically set based on where the annotation is used, but can be explicitly set. Compass also supports custom property accessors, registered under a custom name, which can then be used here as well.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||