函数列表
- 函数:term
- 函数功能说明:查询某个字段里含有某个关键词的文档
- 参数说明:
- 返回值说明:
- ES使用示例:
{
"query": {
"term": {
"title": "blog"
}
}
}
- Doris使用示例:
select * from httplogs where title = 'blog';
- 函数:terms
- 函数功能说明:查询某个字段里含有多个关键词的文档
- 参数说明:
- 返回值说明:
- ES使用示例:
{
"query": {
"terms": {
"title": [ "blog","page"]
}
}
}
- Doris使用示例:
select * from httplogs where title IN ('blog', 'page');
- 函数:match
- 函数功能说明:match首选对字段进行分词操作,然后再查询
- 参数说明:
- 返回值说明:
- ES使用示例:
{
"query": {

本文详细介绍了ES(Elasticsearch)中的各种查询函数,如term、terms、match、should、must、mustnot、exists等,以及它们在Doris数据库中的对应使用示例,重点展示了精确和模糊搜索以及日期时间聚合的功能。

1311

被折叠的 条评论
为什么被折叠?



