org.springframework.data.elasticsearch.annotations.Document.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中org.springframework.data.elasticsearch.annotations.Document.<init>()方法的一些代码示例,展示了Document.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Document.<init>()方法的具体详情如下:
包路径:org.springframework.data.elasticsearch.annotations.Document
类名称:Document
方法名:<init>

Document.<init>介绍

暂无

代码示例

代码示例来源: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: 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: 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: SpringDataElasticsearchDevs/spring-data-elasticsearch-sample-application

@Document( indexName = "person" , type = "user", indexStoreType = "memory", shards = 1, replicas = 0, refreshInterval = "-1")
public class Person {

代码示例来源:origin: jaibeermalik/searchanalytics-bigdata

@Document(indexName = "productviews", type = "productview", indexStoreType = "fs", shards = 1, replicas = 0, refreshInterval = "-1")
public class ProductView {

代码示例来源:origin: Nasruddin/elasticsearch-spring-boot-spring-data

/**
 * Created by Nasir on 12-09-2015.
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "movie-store", type = "movie", shards = 1, replicas = 0)
public class Movie {

  @Id
  private Long id;

  private String name;

  @Field(type = FieldType.Nested)
  private List<Genre> genre;

  private Double rating;

  @Field(type = FieldType.Nested)
  private Director director;

}

代码示例来源:origin: SpringDataElasticsearchDevs/spring-data-elasticsearch-sample-application

@Document(indexName = "person-multiple-level-nested", type = "user", indexStoreType = "memory", shards = 1, replicas = 0, refreshInterval = "-1")
public class PersonMultipleLevelNested {

相关文章

微信公众号

最新文章

更多

Document类方法