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

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

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

import com.rbmhtechnology.vind.annotations.language.Language;

import java.lang.annotation.*;

/**
 * Enable full-text search for this field. In most cases you will want to do this.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Documented
public @interface FullText {

    /**
     * Enable language-specific analysis of this field in the full-text index.
     * If set empty or {@code null} a generic (language-agnostic) analysis will be used.
     * @return {@link Language} of the complex field. By default none.
     */
    Language language() default Language.None;

    /**
     * Add a fixed index-time boost for this field.
     * Matches in boosted fields will be ranked higher in the result list.
     * @return float number with the boost of the field. By default 1.
     */
    float boost() default 1f;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy