AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-34871

Rudolf Vavruch's questions

Martin Hope
Rudolf Vavruch
Asked: 2023-10-08 17:49:21 +0800 CST

Meilisearch 按日期过滤在生产中不起作用,但在本地起作用

  • 5

我已经在生产中的 Kubernetes 上设置了 Meil​​isearch,如下: https: //github.com/meilisearch/meilisearch-kubernetes 在我的本地,我使用 Laravel Sail(但不是 Scout)。

我的本地安装和生产安装之间的主要区别是:

  • 版本 - 本地为 1.2,生产为 1.4
  • 文档数量 - 本地有 82K,生产有 550 万个
  • 我通过 PHP SDK 在本地加载文档,并在生产中通过 cURL 以 98MB 的 CSV 文件上传。

索引的设置似乎是相同的。基本搜索和其他过滤器正在运行,并且排序似乎也正常。

curl -X GET 'http://production/indexes/posts/settings'(我正在使用 k8s 端口转发来访问生产环境 - 它没有公开暴露)

{
  "displayedAttributes": [
    "*"
  ],
  "searchableAttributes": [
    "*"
  ],
  "filterableAttributes": [
    "created_at",
    "doctype",
    "topic_title",
    "user"
  ],
  "sortableAttributes": [
    "created_at"
  ],
  "rankingRules": [
    "words",
    "typo",
    "proximity",
    "attribute",
    "sort",
    "exactness"
  ],
  "stopWords": [],
  "nonSeparatorTokens": [],
  "separatorTokens": [],
  "dictionary": [],
  "synonyms": {},
  "distinctAttribute": null,
  "typoTolerance": {
    "enabled": true,
    "minWordSizeForTypos": {
      "oneTypo": 5,
      "twoTypos": 9
    },
    "disableOnWords": [],
    "disableOnAttributes": []
  },
  "faceting": {
    "maxValuesPerFacet": 100,
    "sortFacetValuesBy": {
      "*": "alpha"
    }
  },
  "pagination": {
    "maxTotalHits": 1000
  }
}

curl -X GET 'http://localhost:7700/indexes/posts/settings'

{
  "displayedAttributes": [
    "*"
  ],
  "searchableAttributes": [
    "*"
  ],
  "filterableAttributes": [
    "created_at",
    "doctype",
    "topic_title",
    "user"
  ],
  "sortableAttributes": [
    "created_at"
  ],
  "rankingRules": [
    "words",
    "typo",
    "proximity",
    "attribute",
    "sort",
    "exactness"
  ],
  "stopWords": [],
  "synonyms": {},
  "distinctAttribute": null,
  "typoTolerance": {
    "enabled": true,
    "minWordSizeForTypos": {
      "oneTypo": 5,
      "twoTypos": 9
    },
    "disableOnWords": [],
    "disableOnAttributes": []
  },
  "faceting": {
    "maxValuesPerFacet": 100
  },
  "pagination": {
    "maxTotalHits": 1000
  }
}

但是,当我使用日期过滤器进行查询时,我没有从生产中得到任何结果。我已确认索引中存在我期望的文档。

curl -X POST 'http://production/indexes/posts/search' -H 'Content-Type: application/json' --data-binary '{"q": "hidden", "filter": "created_at > 1039529906"}'

{"hits":[],"query":"hidden","processingTimeMs":3,"limit":20,"offset":0,"estimatedTotalHits":0}

而在本地它工作正常

curl -X POST 'http://localhost:7700/indexes/posts/search' -H 'Content-Type: application/json' --data-binary '{"q": "hidden", "filter": "created_at > 1039529906"}'

{"hits":[...lots of hits returned ...],"query":"hidden","processingTimeMs":1,"limit":20,"offset":0,"estimatedTotalHits":106}

当前没有正在运行的任务,我昨晚加载了文档:

curl -X GET 'http://production/tasks?statuses=processing'

{"results":[],"total":0,"limit":20,"from":null,"next":null}

我的下一步是终止生产中的索引并再次重新加载数据。不确定这是否会有所作为。

kubernetes
  • 1 个回答
  • 54 Views
Martin Hope
Rudolf Vavruch
Asked: 2014-07-03 23:44:49 +0800 CST

尝试使用 runit 登录只会返回“无法打开监督/确定”

  • 2

安装runit在 Debian 7.4 中的 Vagrant 中。

我的运行脚本正在运行,但是当我创建 service/pants/log/ 目录时,我开始收到以下错误:unable to open supervise/ok. 我的服务继续运行,但没有任何记录。

我尝试了两种不同的服务,但都有同样的问题。

我尝试了各种不同的服务/裤子/日志/运行脚本(主要使用 svlogd),我尝试更改所有内容的权限(a+rwx),存储日志的目录存在并且具有相同的权限。

如果我直接从命令行运行 svlogd,它会按预期工作。

下面的 bash 日志显示了当我重命名/etc/service/pants/_log为/etc/service/pants/log并再次返回时发生的情况/etc/service/pants/_log。

root@vwb-debian-wheezy:/etc/service# sv s pants/
run: pants/: (pid 29260) 44931s
root@vwb-debian-wheezy:/etc/service# mv pants/{_,}log/
root@vwb-debian-wheezy:/etc/service# sv s pants/
run: pants/: (pid 29260) 44963swarning: pants/: unable to open supervise/ok: file does not exist
; run: log: (pid 29260) 44963s
root@vwb-debian-wheezy:/etc/service# cat pants/log/run
#!/bin/sh

exec svlogd -ttt /var/log/service/pants/

root@vwb-debian-wheezy:/etc/service# ll pants/
total 12
drwxrwxrwx 2 root root 4096 Jul  3 07:00 log
-rwxrwxrwx 1 root root  442 Jul  3 06:58 run
drwxrwxrwx 2 root root 4096 Jul  2 18:59 supervise
root@vwb-debian-wheezy:/etc/service# ll /var/log/service/
total 8
drwxrwxrwx 2 root root 4096 Jul  2 16:55 pants
root@vwb-debian-wheezy:/etc/service# mv pants/{,_}log/
root@vwb-debian-wheezy:/etc/service# sv s pants/
run: pants/: (pid 29260) 45105s
debian
  • 3 个回答
  • 6738 Views
Martin Hope
Rudolf Vavruch
Asked: 2012-11-29 12:45:46 +0800 CST

Vagrant / VirtualBox DNS 10.0.2.3 不工作

  • 86

我正在运行全新安装的 Linux Mint Nadia (14)。我正在按照 Vagrant Getting Started上的说明进行操作,但在Provisioning上遇到了困难。似乎 Vagrant 盒子无法连接到外部,所以我无法使用 Chef 或 Puppet 安装任何东西。

在基本的 Vagrantresolve.conf中包含nameserver 10.0.2.3. 但是用那个设置我不能 ping us.archive.ubuntu.com。

如果我将其更改为8.8.8.8然后我可以 pingus.archive.ubuntu.com但它不会保持设置状态,并且在重新启动后它会变回10.0.2.3- 因此配置再次失败。

理想情况下,我希望10.0.2.3在我的设置上工作。如果失败,我想要一种永久更改的方法,resolv.conf以便我可以进行配置。

domain-name-system
  • 3 个回答
  • 68763 Views
Martin Hope
Rudolf Vavruch
Asked: 2010-02-16 03:43:57 +0800 CST

Squid / IPtables 仅在访问某个代理域时允许连接

  • 2

我不确定这是 Squid 主题还是 IPTables。

在我的 Squid 配置中,我有这样的设置:

http_port proxy.example.com:8080

我希望 Squid 只接受来自使用“proxy.example.com”作为代理域连接的用户的连接。

换句话说,如果有人要使用另一个将我的服务器指向端口 8080 的域进行连接,我希望他们被拒绝访问代理,包括直接访问 IP 地址。

这在 Squid 中可行吗?如果不是,我将如何在 IPtables 中进行设置?

squid access-control-list iptables
  • 1 个回答
  • 854 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve