org.compass.annotations
Annotation Type SearchableAnalyzerProperty


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface SearchableAnalyzerProperty

Specifies a Searchable class field/property that dynamically controls the anlayzer that will be used to analyze the class content.

The value of the field/property will be used as analyzer lookup name of the different analyzers defined within Compass.

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 String analyzer lookup name.
 String nullAnalyzer
          The lookup name for the analyzer in case the value of the field/proeprty is null.
 

nullAnalyzer

public abstract String nullAnalyzer
The lookup name for the analyzer in case the value of the field/proeprty is null.

Default:
""

converter

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

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-2008 The Compass Project.