org.hibernate.search.annotations
Annotation Type ClassBridge


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Documented
public @interface ClassBridge

This annotation allows a user to apply an implementation class to a Lucene document to manipulate it in any way the user sees fit.

Author:
John Griffin, Hardy Ferentschik

Required Element Summary
 Class<?> impl
           
 
Optional Element Summary
 Analyze analyze
           
 Analyzer analyzer
           
 Boost boost
           
 Index index
           
 String name
           
 Norms norms
           
 Parameter[] params
           
 Store store
           
 TermVector termVector
           
 

Element Detail

impl

public abstract Class<?> impl
Returns:
Custom implementation of class bridge

name

public abstract String name
Returns:
the field name (defaults to the JavaBean property name)
Default:
""

store

public abstract Store store
Returns:
Returns an instance of the Store enum, indicating whether the value should be stored in the document. Defaults to Store.NO
Default:
org.hibernate.search.annotations.Store.NO

index

public abstract Index index
Returns:
Returns a Index enum defining whether the value should be indexed or not. Defaults to Index.YES
Default:
org.hibernate.search.annotations.Index.YES

analyze

public abstract Analyze analyze
Returns:
Returns a Analyze enum defining whether the value should be analyzed or not. Defaults to Analyze.YES
Default:
org.hibernate.search.annotations.Analyze.YES

norms

public abstract Norms norms
Returns:
Returns a StoreNorm enum defining whether the norms should be stored in the index or not. Defaults to StoreNorm.YES
Default:
org.hibernate.search.annotations.Norms.YES

termVector

public abstract TermVector termVector
Returns:
Returns an instance of the TermVector enum defining how and if term vectors should be stored. Default is TermVector.NO
Default:
org.hibernate.search.annotations.TermVector.NO

analyzer

public abstract Analyzer analyzer
Returns:
Returns a analyzer annotation defining the analyzer to be used. Defaults to the inherited analyzer
Default:
@org.hibernate.search.annotations.Analyzer

boost

public abstract Boost boost
Returns:
Returns a Boost annotation defining a float index time boost value
Default:
@org.hibernate.search.annotations.Boost(1.0f)

params

public abstract Parameter[] params
Returns:
Array of Parameter instances passed to the class specified by impl() to initialize the class bridge
Default:
{}


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved