Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【CMDB+v3.12.4】全文检索无法搜索表格子段内容 #7952

Open
chenrb opened this issue Apr 29, 2024 · 0 comments
Open

【CMDB+v3.12.4】全文检索无法搜索表格子段内容 #7952

chenrb opened this issue Apr 29, 2024 · 0 comments

Comments

@chenrb
Copy link

chenrb commented Apr 29, 2024

用文字描述你遇到的问题

开启全文搜索后,无法搜索表格子段内容

重现方法

模型创建表格字段,并创建数据,全文输入内容搜索点击
image
image
image

预期行为

正常搜索出内容

版本

  • v3.12.4

如果是页面问题,请提供使用的操作系统和浏览器信息

  • OS: centos7
  • Browser: chrome
  • Version: 版本 124.0.6367.91(正式版本) (64 位)

额外信息
由于无法编译对应的monstache和monstache-plugins.go,使用issue提供的版本执行
#5308 (comment)
image
使用的配置文件

[root@vm release-v3.12.4]# cat monstache/etc/config.toml 

# mongodb settings
mongo-url = "mongodb://cc:cc@127.0.0.1:27017/cmdb"

# elasticsearch settings
elasticsearch-urls = ["http://127.0.0.1:9200"]
elasticsearch-user = ""
elasticsearch-password = ""
gzip = true

# metadata collections.
change-stream-namespaces = [""]
direct-read-namespaces = [""]
direct-read-dynamic-include-regex = "cmdb.cc_ApplicationBase$|cc_BizSetBase$|cc_SetBase$|cc_ModuleBase$|cmdb.cc_HostBase$|cmdb.cc_ObjDes$|cmdb.cc_ObjAttDes$|cmdb.cc_ObjectBase_(.*)_pub_"
namespace-regex = "cmdb.cc_ApplicationBase$|cc_BizSetBase$|cc_SetBase$|cc_ModuleBase$|cmdb.cc_HostBase$|cmdb.cc_ObjDes$|cmdb.cc_ObjAttDes$|cmdb.cc_ObjectBase_(.*)_pub_"

# plugin
mapper-plugin-path = "etc/monstache-plugin.so"

# resume mode
resume = true

开启v5日志,cmdb_toposerver日志
image
查看es索引如下
image
映射 bk_cmdb.object_instance_20210710

{
  "mapping": {
    "properties": {
      "keywords": {
        "type": "keyword"
      },
      "meta_bk_biz_id": {
        "type": "keyword"
      },
      "meta_bk_obj_id": {
        "type": "keyword"
      },
      "meta_bk_supplier_account": {
        "type": "keyword"
      },
      "meta_data_kind": {
        "type": "text",
        "fields": {
          "keyword": {
            "type": "keyword",
            "ignore_above": 256
          }
        }
      },
      "meta_id": {
        "type": "keyword"
      }
    }
  }
}

组件版本
zookeeper:3.4.11
redis:5.0.9
mongo:4.2.8
elasticsearch:7.0.0
kibana:7.0.0

任何你觉得有助于问题解决的内容

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant