承接 glance-project/search-service 相关项目开发

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

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

glance-project/search-service

Composer 安装命令:

composer require glance-project/search-service

包简介

Search Service

README 文档

README

Search Service created to translate query strings generated from a boolean search into SQL filters

For the full documentation please refer to these links: Entity search guide, Search service guide.

Getting started

Before we start, make sure you have run the migrations on your database. They can be found on the `/example/migrationsfolder. Don't forget to change{{ HISTORY_SCHEMA_NAME }}to your history schema name and{{ SCHEMA_NAME }}to your main schema name. On the example we are also inserting a search type calledsurveys`. This goes in line with the example SQL queries we are using.

Installing

To install the search service as one of your application's dependencies you can run the following command:

    composer require glance-project/search-service

Setting up

You need to setup your SQL query and the .json configuration file for your search. The configuration file will be used to define the properties, cache location, lookup table and the location of your SQL query, which will be used to retrieve the data from the database. An example can be found on the `/example/resources/survey-search.sqlfolder for the query and on the/example/resources/surveys.json` folder for the configuration file.

When we define the properties on the configuration file, we include, alongside with the column name from the database, their type (e.g. "date") and the compatible operators (e.g. "contain", "not-contain", "=", "!=").

You also need to create the controller and setup the routes for the search service. An example can be found on the `/example/Search/SearchController.phpand/example/Search/SearchRoutes.php` files. After they are set up, an user will be able to save, delete and find their saved searches (that's the reason for the database migrations).

With all this set up you are able to use the search service. For the client, please visit this link.

Using the search service

On the `/example/Survey/Web/SurveyController.php` file you can find an example of how a controller communicates with the search service. An example GET request would look like this:

    'https://localhost:8080/rp-survey/api/surveys/search?offset=0&limit=50&queryString=(%2B%22description%22%0A%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%3D%0A%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%2B%22test%22%2B%2B)

(with the url decoded to ` https://localhost:8080/rp-survey/api/surveys/search?offset=0&limit=50&queryString=( "description" = "test" )```

Would result in a response like this:

{
	"results": [
		{
			"id": "1389",
			"description": "test",
			"comments": null,
			"magnetOn": "N",
			"magnetOnAsString": "No",
			"startedOn": "04-AUG-22 01.52.00.000000 PM",
			"startedOnAsString": "2022-08-04 13:52",
			"beamOffAt": "04-AUG-22 01.52.00.000000 PM",
			"beamOffAtAsString": "2022-08-04 13:52",
			"ramsesLogLink": null,
			"responsiblePersonsNames": "Carlos Brito"
		}
	],
	"numberOfResults": "1"
}

More info

This project was the subject of a presentation at the 26th International Conference On Computing In High Energy & Nuclear Physics (CHEP 2023). You can find the event here.

glance-project/search-service 适用场景与选型建议

glance-project/search-service 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.15k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 09 月 13 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 glance-project/search-service 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 glance-project/search-service 我们能提供哪些服务?
定制开发 / 二次开发

基于 glance-project/search-service 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2023-09-13