如何在Kibana中搜索特殊字符 [英] How search special characters in Kibana
问题描述
我想找到包含此序列"--->"的消息,但Kibana结果是错误的.
I would like to find messages which contains this sequence "--->", but Kibana result it's wrong.
如何逃脱这些字符以获得良好的结果?
How escape this characters to have a good result ?
谢谢
推荐答案
首先,我认为您应该检查mappings
,是否将您的字段未标记为not_analyzed
(或者没有关键字分析器).如果碰巧是这样,您将看不到任何搜索结果.标准分析器会在索引文档时删除字符.
First I think you should be checking your mappings
, whether your fields are not marked as not_analyzed
(or don't have keyword analyzer). If it happened to be there as such you won't be able to see any search results. Standard analyzer removes characters when indexing a document.
如果您在引号(包括您的特殊字符)中进行搜索,该怎么办?
What if you search it within the quotes including your special character?
此 SO 可以为您提供帮助.您也可以在 Lucene 的Special Characters
部分中进行查看. doc.希望对您有帮助!
This SO could help you. You could also maybe have a look at the Special Characters
section at the Lucene doc. Hope it helps!
这篇关于如何在Kibana中搜索特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!