NLPchina / elasticsearch-sql

Use SQL to query Elasticsearch
Apache License 2.0
7k stars 1.54k forks source link

Do you support query nested? #560

Closed xumingbei closed 6 years ago

shi-yuan commented 7 years ago

NestedTypes queries

xumingbei commented 7 years ago

Thanks

wanghu198343 commented 7 years ago

@xumingbei 您好!用中文提问可以么?我用的是java api导入数据到ES5.6.3,请问如何在导入的时候,指定字段的类型? 我有一个字段,ES默认的类型是text,但是该字段需要在聚合时使用,text类型会被分词,我想在导入数据的时候,指定字段类型为keyword类型,不知道在哪里设置。 谢谢指教!!

xumingbei commented 7 years ago

@wanghu198343 您好,mapping映射,在创建索引的时候进行mapping映射操作即可。 网址为:https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html

xumingbei commented 7 years ago

@wanghu198343
http://www.cnblogs.com/Creator/p/3722408.html

wanghu198343 commented 7 years ago

@xumingbei 谢谢您的回复,我研究一下在java api中,怎样在创建索引的时候映射类型。