本文整理了Java中org.springframework.data.elasticsearch.annotations.Document
类的一些代码示例,展示了Document
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Document
类的具体详情如下:
包路径:org.springframework.data.elasticsearch.annotations.Document
类名称:Document
暂无
代码示例来源:origin: spring-projects/spring-data-examples
@Document(indexName = "conference-index", type = "geo-class-point-type", shards = 1, replicas = 0,
refreshInterval = "-1")
public class Conference {
代码示例来源:origin: SpringDataElasticsearchDevs/spring-data-elasticsearch
public SimpleElasticsearchPersistentEntity(TypeInformation<T> typeInformation) {
super(typeInformation);
this.context = new StandardEvaluationContext();
Class<T> clazz = typeInformation.getType();
if(clazz.isAnnotationPresent(Document.class)){
Document document = clazz.getAnnotation(Document.class);
Assert.hasText(document.indexName(), " Unknown indexName. Make sure the indexName is defined. e.g @Document(indexName=\"foo\")");
this.indexName = typeInformation.getType().getAnnotation(Document.class).indexName();
this.indexType = hasText(document.type())? document.type() : clazz.getSimpleName().toLowerCase(Locale.ENGLISH);
}
}
代码示例来源:origin: macrozheng/mall
@Document(indexName = "pms", type = "product",shards = 1,replicas = 0)
public class EsProduct implements Serializable {
private static final long serialVersionUID = -1L;
代码示例来源:origin: mercyblitz/segmentfault-lessons
@Document(indexName = "book", type = "it")
public class Book implements Serializable {
代码示例来源:origin: javahongxi/whatsmars
@Document(indexName = "customer", type = "customer", shards = 1, replicas = 0, refreshInterval = "-1")
public class Customer {
代码示例来源:origin: armzilla/amazon-echo-ha-bridge
@Document(indexName = "device", type = "devicedescriptor", shards = 1, replicas = 0, refreshInterval = "-1")
public class DeviceDescriptor{
@Id
代码示例来源:origin: Exrick/x-boot
@Document(indexName = "log", type = "log", shards = 1, replicas = 0, refreshInterval = "-1")
public class EsLog implements Serializable{
代码示例来源:origin: lianggzone/springboot-action
@Document(indexName = "springbootdb", type = "news")
public class News {
代码示例来源:origin: yejingtao/forblog
@Document(indexName="index_entity", type="tstype")
public class Entity implements Serializable{
代码示例来源:origin: lxy-go/SpringBoot
@Document(indexName = "wdjr",type="book")
public class Book {
代码示例来源:origin: cuzz1/springboot-learning
/**
* @Author: cuzz
* @Date: 2018/9/27 18:32
* @Description:
*/
@Document(indexName = "cuzz",type="book")
@Data
public class Book {
private Integer id;
private String bookName;
private String auto;
public Book() {
super();
}
public Book(Integer id, String bookName, String auto) {
super();
this.id = id;
this.bookName = bookName;
this.auto = auto;
}
}
代码示例来源:origin: yingzhuo/spring-examples
@Document(indexName = "example", type = "user")
public class User implements Serializable {
代码示例来源:origin: je-ge/spring-boot
@Document(indexName = "user", type = "user", shards = 1, replicas = 0, refreshInterval = "-1")
public class User {
@Id
代码示例来源:origin: jiangjingming/springboot-study
@Document(indexName = "es-customer-baili", type = "customer", shards = 2, replicas = 1, refreshInterval = "-1")
public class Customer {
代码示例来源:origin: xuwujing/springBoot-study
@Document(indexName = "userindex", type = "user")
public class User implements Serializable{
代码示例来源:origin: VanRoy/spring-data-jest
@Document(indexName = "customer", type = "customer", shards = 1, replicas = 0, refreshInterval = "-1")
public class Customer {
代码示例来源:origin: VanRoy/spring-data-jest
@Document(indexName = "customer", type = "customer", shards = 1, replicas = 0, refreshInterval = "-1")
public class Customer {
代码示例来源:origin: SpringDataElasticsearchDevs/spring-data-elasticsearch-sample-application
@Document(indexName = "book",type = "book" , shards = 1, replicas = 0, indexStoreType = "memory", refreshInterval = "-1")
public class Product {
@Id
代码示例来源:origin: souyunku/SpringBootExamples
@Document(indexName = "book_index", type = "books")
public class Book {
代码示例来源:origin: daijiejay/daijie-example
@SuppressWarnings("serial")
@Document(indexName="dome",type="blog",indexStoreType="fs",shards=5,replicas=1,refreshInterval="-1")
public class Blog implements Serializable {
内容来源于网络,如有侵权,请联系作者删除!