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

sirius.search.annotations.FastCompletion Maven / Gradle / Ivy

Go to download

Provides a thin layer above Elasticsearch (Fluent Query API, Automatic Mapping, Utilities)

The newest version!
/*
 * Made with all the love in the world
 * by scireum in Remshalden, Germany
 *
 * Copyright by scireum GmbH
 * http://www.scireum.de - [email protected]
 */

package sirius.search.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Marks a field so that it can be used for fast query completion. Internally additional datastructures are
 * generated.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface FastCompletion {
    /**
     * Limits the length of a single input at index-time. See the ES docs for detailed information.
     *
     * @return the maximum length of a single input
     */
    int maxInputLength() default 50;

    /**
     * The names for the contexts used to filter completions
     *
     * @return the names of the contexts used
     */
    String[] contextNames() default "";

    /**
     * The types of contexts. ElasticSearch provides "category" and "geo".
     *
     * @return the types of the contexts
     */
    String[] contextTypes() default "category";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy