
org.frekele.elasticsearch.mapping.annotations.ElasticDocument 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.annotations.values.BoolValue;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Elasticsearch Document Type.
*
* @author frekele - Leandro Kersting de Freitas
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ElasticDocument {
//Document name Type.
String value();
BoolValue dynamic() default @BoolValue(ignore = true);
BoolValue includeInAll() default @BoolValue(ignore = true);
String parent() default "";
//add eager_global_ordinals into _parent
BoolValue eagerGlobalOrdinalsParent() default @BoolValue(ignore = true);
BoolValue enabledAll() default @BoolValue(ignore = true);
//add store into _all
BoolValue storeAll() default @BoolValue(ignore = true);
//add required into _routing
BoolValue requiredRouting() default @BoolValue(ignore = true);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy