org.compass.annotations
Annotation Type SearchableBoostProperty


@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.

Author:
kimchy

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.
 

defaultValue

public abstract float defaultValue
The default value if this property is null.

Default:
1.0f

converter

public abstract String converter
The converter lookup name that will be used to convert the field/property into a float boost value.

Default:
""

accessor

public abstract String accessor
The property accessor that will be fetch and write the property value.

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.

Default:
""


Copyright (c) 2004-2009 The Compass Project.