All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rbmhtechnology.vind.annotations.Field Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package com.rbmhtechnology.vind.annotations;

import java.lang.annotation.*;

/**
 * Field-level configuration on how the field is put into the Search-Index.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Documented
public @interface Field {

    /**
     * The name of this field in the Index. If left out, the name of the annotated Field will be used.
     * @return {@link String} name of the field.
     */
    String name() default "";

    /**
     * EXPERT:
     * Mark this field as {@code indexed}. Indexed fields can be part of a query.
     * @return boolean flag whether the field is indexed or not. Default true.
     */
    boolean indexed() default true;

    /**
     * EXPERT:
     * Mark this field as {@code stored}. Stored fields can be retrieved in a query.
     * @return boolean flag whether the field is stored or not. Default true.
     */
    boolean stored() default true;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy