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

zinc search 目前使用的搜索模式 match 搜不到聊天记录 #105

Open
Alpiiine opened this issue Mar 22, 2023 · 3 comments
Open

Comments

@Alpiiine
Copy link
Contributor

Alpiiine commented Mar 22, 2023

使用机器人搜索时:
image

使用 zinc search 网页搜索时:
image

开了开发者工具看了下网页搜索时的请求,贴在下面:

{
   "query":{
      "bool":{
         "must":[
            {
               "range":{
                  "@timestamp":{
                     "gte":"2023-03-21T00:19:29.260Z",
                     "lt":"2023-03-22T00:19:29.260Z",
                     "format":"2006-01-02T15:04:05Z07:00"
                  }
               }
            },
            {
               "query_string":{
                  "query":"nga"
               }
            }
         ]
      }
   },
   "sort":[
      "-@timestamp"
   ],
   "from":0,
   "size":100,
   "aggs":{
      "histogram":{
         "date_histogram":{
            "field":"@timestamp",
            "calendar_interval":"1h",
            "fixed_interval":""
         }
      }
   }
}

需要说明的是,由于失误,图里的关键词大小写并不一致。实际上不管是用大写还是小写,网页端都能查到数据,机器人都查不到。

@yanshibin
Copy link

请问下,这个zinc 机器人是怎么配置的

@Alpiiine
Copy link
Contributor Author

zinc

这个issue是几个月前提的了,而且没过多久就因为某鹅疯狂风控已经不再使用,所以不知道现在是什么情况。

但理论来说你 docker-compose.yaml 配置好,运行起来之后就能使用搜索功能了。

@magisk317
Copy link
Contributor

之前没配置,今天试了下,好像确实有点问题

数据库里是有的:
Screenshot_2023-09-10-13-49-02-087_com android chrome-edit

搜索返回空(tg里就不用试了,肯定也是空):
Screenshot_2023-09-10-13-48-41-734_com android chrome-edit

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

3 participants