
org.frekele.elasticsearch.mapping.annotations.ElasticPercolatorField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-mapping-builder Show documentation
Show all versions of elasticsearch-mapping-builder Show documentation
Elasticsearch Java Mapping Builder.
The newest version!
package org.frekele.elasticsearch.mapping.annotations;
import org.frekele.elasticsearch.mapping.enums.FieldType;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* The percolator field type parses a json structure into a native query and stores that query, so that the percolate query can use it to match provided documents.
* Any field that contains a json object can be configured to be a percolator field.
* The percolator field type has no settings.
* Just configuring the percolator field type is sufficient to instruct Elasticsearch to treat a field as a query.
*
* @author frekele - Leandro Kersting de Freitas
* @see Site Elasticsearch Reference Guide.
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ElasticPercolatorField {
FieldType type = FieldType.PERCOLATOR;
String suffixName() default "percolator";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy