org.compass.annotations
Annotation Type SearchableDynamicMetaData


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface SearchableDynamicMetaData

A dynamic meta data evaluation of the given expression using an expression language library.

Author:
kimchy

Required Element Summary
 String converter
          The dynamic converter lookup name.
 String expression
          The expression to be evaluated by the dynamic expression evaluation library.
 String name
          The name of the meta-data.
 
Optional Element Summary
 String analyzer
          Specifies a specialized analyzer lookup name that will be used to analyze the meta-data content.
 float boost
          The boost level for the meta-data.
 boolean excludeFromAll
          Specifies if this meta-data should be excluded from the generated "all" meta-data.
 String format
          The format to apply to the value.
 Index index
          Specifies whether and how a meta-data proeprty should be indexed.
 Reverse reverse
          Specifies whether and how the meta-data proeprty should value will be revered.
 Store store
          Specifies whether and how a meta-data property will be stored.
 TermVector termVector
          Specifies whether and how a meta-data property should have term vectors.
 Class type
          If using a format, the type of the expression result.
 

Element Detail

name

public abstract String name
The name of the meta-data. The name will be the value the contend will be saved under, so it can later be searched using "author:london" (here the name is author).


expression

public abstract String expression
The expression to be evaluated by the dynamic expression evaluation library.


converter

public abstract String converter
The dynamic converter lookup name. Compass built in ones include: jexl, velocity.

boost

public abstract float boost
The boost level for the meta-data. Will cause hits based on this meta-data to rank higher.

Default:
1.0f

store

public abstract Store store
Specifies whether and how a meta-data property will be stored.

Default:
YES

index

public abstract Index index
Specifies whether and how a meta-data proeprty should be indexed.

Default:
TOKENIZED

termVector

public abstract TermVector termVector
Specifies whether and how a meta-data property should have term vectors.

Default:
NO

reverse

public abstract Reverse reverse
Specifies whether and how the meta-data proeprty should value will be revered.

Default:
NO

analyzer

public abstract String analyzer
Specifies a specialized analyzer lookup name that will be used to analyze the meta-data content.

Defaults to Compass default analyzer.

Default:
""

excludeFromAll

public abstract boolean excludeFromAll
Specifies if this meta-data should be excluded from the generated "all" meta-data.

See Also:
Searchable.enableAll()
Default:
false

format

public abstract String format
The format to apply to the value. Only applies to format-able converters (like dates and numbers).

Default:
""

type

public abstract Class type
If using a format, the type of the expression result.

Default:
java.lang.Object.class


Copyright (c) 2004-2006 The Compass Project.