Download the PHP package lingxi/ali-opensearch-sdk without Composer

On this page you can find all versions of the php package lingxi/ali-opensearch-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ali-opensearch-sdk

ali-opensearch-sdk

应用层,基于 laravel scout 实现:https://laravel.com/docs/5.4/scout#custom-engines

scout 默认引擎是 algolia:https://www.algolia.com

开源的,大家常用 Elasticsearch:https://laracasts.com/discuss/channels/general-discussion/looking-for-a-search-engine-for-my-laravel-app?page=1

阿里云有开放搜索服务:https://help.aliyun.com/document_detail/29104.html?spm=5176.doc35261.6.539.qrzcjR

看文档相比自己搭 Elasticsearch 有以下优势:

安装

配置

在你的 scout.php

注册服务


使用

请先阅读:https://laravel.com/docs/5.3/scout

在 Model 里添加 Searchable Trait:

开始使用:

简单搜索

更为复杂的情况就是对搜索添加的构造,仿照 laravel model/builder 的思想写了一个对 Opensearch 的 查询构造器.

根据条件动态的搜索, 基本和 eloquent 提供的数据库查询保持一致.

数据的维护

有很多情况可能无法直接使用 opensearch 直接同步 RDS 的数据,那么就需要在应用用去手动维护。

这个时候实现 toSearchableDocCallbacks 这个方法,向 opensearch 提供删除,修改的数据。

使用可以先阅读源码,有详细的注释,这边还没有想出最佳实践。


All versions of ali-opensearch-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^5.5.9 || ^7.0
laravel/scout Version ~2.0 || ~3.0
illuminate/events Version ~5.1
illuminate/contracts Version ~5.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lingxi/ali-opensearch-sdk contains the following files

Loading the files please wait ....