maple/msearch
Composer 安装命令:
composer require maple/msearch
包简介
A package for interacting with Meilisearch
关键字:
README 文档
README
This package makes it easy to get structured search from a meilisearch.
Installation
Installed using composer:
composer require maple/msearch
Publish
Once the package has been installed, you may need to publish config:
// Publish config
php artisan vendor:publish --provider="SearchEngine\ServiceProvider" --tag="config"
Usage
To get the documents from existing index
$searchResults = (new Documents())
->getDocuments($index_uid, $offset = 0, $limit = 20, $attributesToRetrieve = "*");
To get a single document from existing index
$searchResults = (new Documents())
->getDocument($index_uid, $document_id);
To add a new document fto the index
$searchResults = (new Documents())
->addDocuments($index_uid, $documents);
To update a document
$searchResults = (new Documents())
->updateDocuments($index_uid, $documents);
To delete all document
$searchResults = (new Documents())
->deleteDocuments($index_uid);
To delete a document
$searchResults = (new Documents())
->deleteDocument($index_uid, $document_id);
To delete documents by batch
$searchResults = (new Documents())
->deleteBatchDocument($index_uid, $document_ids);
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-28