sofa-lookout icon indicating copy to clipboard operation
sofa-lookout copied to clipboard

Fix the problem of Tag selector "=" filter can not match the whole word

Open it-linnan opened this issue 4 years ago • 2 comments

Motivation:

Tag选择器的“=”筛选,不能实现全字匹配。 比如jvm.threads.daemon{app="foo"},这样查询 实际结果是,能够查询到foo和gateway等多个应用的时序数据 预期结果是,只查询到foo应用的时序数据

Modification:

使用ES的keyword特性,阻止ES进行分词

Result:

Fixes #83 .

it-linnan avatar Apr 06 '20 12:04 it-linnan

Hi @it-linnan, we detect non-English characters in the issue. This comment is an auto translation by @sofastack-robot to help other users to understand this issue.

We encourage you to describe your issue in English which is more friendly to other users.

Motivation: "=" filter of ag selector cannot match whole words. For example, jvm.threads.daemon {app = "foo"}, so that the actual result of the query is that it can query the time series data of multiple applications such as foo and gateway. The expected result is that only the time series data of the foo application can be queried Use ES's keyword feature to prevent ES from tokenizing ### Result: Fixes # 83.

sofastack-bot[bot] avatar Apr 06 '20 12:04 sofastack-bot[bot]

Hi @it-linnan, Please sign Contributor License Agreement!

After you signed CLA, we will automatically sync the status of this pull request in 3 minutes.

sofastack-bot[bot] avatar Apr 06 '20 12:04 sofastack-bot[bot]