Elasticsearch的field类型。

来源:互联网 发布:excel文件恢复软件 编辑:程序博客网 时间:2024/05/01 16:53

Elasticsearch中的域,可以理解为RDBMS中的字段,在创建mapping的时候需要指定类型。

type  类型,可以是boolean,long,double,date,string
The datatype that the field contains, such as string or date

index    是否进行索引,                                               analyzed表示索引,并且对数据进行拆词,not_analyzed表示索引,但是不进行拆词,no表示不索引。也就没法对该字段进行搜索。
Whether a field should be searchable as full text (analyzed), searchable as an exact value (not_analyzed), or not searchable at all (no)

analyzer    指定分词器。默认standard分词器,另外还有whitespace,simple, or english等。
Which analyzer to use for a full-text field, both at index time and at search time

0 0
原创粉丝点击