aou2ouba 2017-04-01 03:57 采纳率: 0%
浏览 3776

spring-boot与elasticsearch整合时如何定义内嵌对象的分词策略

@Document(indexName = "logmodel", type = "logs", shards = 4, replicas = 1,indexStoreType="fs", refreshInterval = "-1")
public class LogES {
@Id
private String id;
private String itcode;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String ip;
private String ad_type;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String telephone;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String mobile;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String email;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String firstname;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String firstnameen;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String boss;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String position;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String organization;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String country;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String cityname;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String givenname;
private String employeeNumber;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String employeetype;
private boolean ismanager;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String bossname;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String bigboss;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String bigbossname;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String enterprise;
@JsonFormat (shape = JsonFormat.Shape.STRING, pattern ="yyyy-MM-dd'T'hh:mm:ss.SSS'Z'")
private Date dt;
private String dev_platform;
private String app_version;
private String dev_version;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String dev_info;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String dev_imei;
@Field(type = FieldType.String,index = FieldIndex.not_analyzed)
private String func;
@Field( type = FieldType.Auto)
private Object content;
private CochatResponseEntity cochatResponseEntity;
比如怎么设置content对象内部字段的分词策略,如:@Field(type = FieldType.String,index = FieldIndex.not_analyzed)

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 使用C#,asp.net读取Excel文件并保存到Oracle数据库
    • ¥15 C# datagridview 单元格显示进度及值
    • ¥15 thinkphp6配合social login单点登录问题
    • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配