承接 manticoresoftware/buddy-plugin-knn 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

manticoresoftware/buddy-plugin-knn

Composer 安装命令:

composer require manticoresoftware/buddy-plugin-knn

包简介

The Buddy KNN doc joiner plugin

README 文档

README

This is an initial template of a plugin for Buddy that you can use to develop.

How to start

  1. Create a repository from this template.
  2. Open composer.json and edit it with your plugin name, dependencies, and everything else you need.
  3. Run composer install to make it work.
  4. You need to use our official manticore-executor; we strictly recommend using the Docker flow.
  5. Edit src/Payload.php, add logic to parse the request, and prepare the payload structure for your command processing.
  6. Edit src/Handler.php and implement processing logic and response that will be proxied by Manticore to the client.

How to use Docker of manticore-executor-dev

  1. Clone Buddy somewhere to your host machine and go into it.

  2. Run this command to create a Docker image named manticore-buddy:

    docker run --privileged --entrypoint bash -v $(pwd):/workdir -w /workdir --name manticore-buddy  --network host -it manticoresearch/manticore-executor-kit:latest
  3. Now you can edit /etc/manticore.conf and configure the development version of Buddy:

    buddy_path = manticore-executor-dev /workdir/src/main.php --debug
    
  4. Run searchd --nodetach to keep the daemon in the foreground and enjoy the development of your new plugin.

Notes

You can use pre-commit to install code style and code analyze hooks by running pre-commit install. Check our PHP code style and guide here.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-01-11