无论才能、知识多么卓著,如果缺乏热情,则无异纸上画饼充饥,无补于事。

elasticsearch如何模糊查询特殊字符

Elasticsearch | 作者 grxasd | 发布于2017年10月12日 | 阅读数:7672

比如字段content为:《特殊, 字符》,我想查询有《,或者,这些特殊字符应该怎么写,用
"query": {
"wildcard": {
"content": {
"value": "*《*"
}
}
}
这样写查不出来,请问应该怎么写
已邀请:

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自: DoubleDragon belizer

content改成content.keyword

belizer - 80后IT男

赞同来自:

test

要回复问题请先登录注册