Skip to content

Commit 7ccbdc7

Browse files
authored
Merge branch 'master' into bump-meilisearch-v0.19.0
2 parents a076514 + f8a3ee7 commit 7ccbdc7

File tree

7 files changed

+32
-18
lines changed

7 files changed

+32
-18
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ First of all, thank you for contributing to MeiliSearch! The goal of this docume
1616

1717
1. **You're familiar with [GitHub](https://github.com) and the [Pull Request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) (PR) workflow.**
1818
2. **You've read the MeiliSearch [documentation](https://docs.meilisearch.com) and the [README](/README.md).**
19-
3. **You know about the [MeiliSearch community](https://docs.meilisearch.com/resources/contact.html). Please use this for help.**
19+
3. **You know about the [MeiliSearch community](https://docs.meilisearch.com/learn/what_is_meilisearch/contact.html). Please use this for help.**
2020

2121
## How to Contribute
2222

@@ -124,6 +124,8 @@ _[Read more about this](https://github.com/meilisearch/integration-guides/blob/m
124124

125125
### How to Publish the Release
126126

127+
⚠️ Before doing anything, make sure you got through the guide about [Releasing an Integration Tool](https://github.com/meilisearch/integration-guides/blob/master/guides/integration-tool-release.md).
128+
127129
Make a PR modifying the file [`src/MeiliSearchBundle.php`](/src/MeiliSearchBundle.php) with the right version.
128130

129131
```ruby

README.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,38 @@
2828

2929
## Table of Contents <!-- omit in toc -->
3030

31-
- [🤖 Compatibility with MeiliSearch](#-compatibility-with-meilisearch)
32-
- [✨ Features](#-features)
3331
- [📖 Documentation](#-documentation)
32+
- [📝 Requirements](#-requirements)
33+
- [🤖 Compatibility with MeiliSearch](#-compatibility-with-meilisearch)
34+
- [💡 Learn More](#-learn-more)
3435
- [⚙️ Development Workflow and Contributing](#️-development-workflow-and-contributing)
3536

36-
## 🤖 Compatibility with MeiliSearch
37+
## 📖 Documentation
3738

38-
This package only guarantees the compatibility with the [version v0.19.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.19.0).
39+
Check out the [Uncyclo](https://github.com/meilisearch/meilisearch-symfony/wiki) of this repository to get started! 🚀
40+
41+
Also, see our [Documentation](https://docs.meilisearch.com/learn/tutorials/getting_started.html) or our [API References](https://docs.meilisearch.com/reference/api/).
3942

40-
## ✨ Features
43+
## 📝 Requirements
4144

4245
* **Require** PHP 7.2 and later.
4346
* **Compatible** with Symfony 4.0 and later.
4447
* **Support** Doctrine ORM and Doctrine MongoDB.
4548

46-
## 📖 Documentation
49+
## 🤖 Compatibility with MeiliSearch
50+
51+
This package only guarantees the compatibility with the [version v0.19.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.19.0).
52+
53+
## 💡 Learn More
54+
55+
The following sections may interest you:
4756

48-
Complete documentation of the MeiliSearch Bundle is available in the [Uncyclo section](https://github.com/meilisearch/meilisearch-symfony/wiki).
57+
- **Manipulate documents**: see the [API references](https://docs.meilisearch.com/reference/api/documents.html) or read more about [documents](https://docs.meilisearch.com/learn/core_concepts/documents.html).
58+
- **Search**: see the [API references](https://docs.meilisearch.com/reference/api/search.html) or follow our guide on [search parameters](https://docs.meilisearch.com/reference/features/search_parameters.html).
59+
- **Manage the indexes**: see the [API references](https://docs.meilisearch.com/reference/api/indexes.html) or read more about [indexes](https://docs.meilisearch.com/learn/core_concepts/indexes.html).
60+
- **Configure the index settings**: see the [API references](https://docs.meilisearch.com/reference/api/settings.html) or follow our guide on [settings parameters](https://docs.meilisearch.com/reference/features/settings.html).
4961

50-
You can also check out the [MeiliSearch documentation](https://docs.meilisearch.com/guides/introduction/quick_start_guide.html).
62+
📖 Also, check out the [Uncyclo](https://github.com/meilisearch/meilisearch-symfony/wiki) of this repository!
5163

5264
## ⚙️ Development Workflow and Contributing
5365

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"require": {
2121
"php": "^7.2",
2222
"ext-json": "*",
23-
"meilisearch/meilisearch-php": "^0.15",
23+
"meilisearch/meilisearch-php": "^0.16",
2424
"symfony/filesystem": "^4.0 || ^5.0",
2525
"symfony/property-access": "^4.0 || ^5.0",
2626
"symfony/serializer": "^4.0 || ^5.0"

src/Command/MeiliSearchImportCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private function formatIndexingResponse(array $batch): array
182182
$formattedResponse[$indexName] = 0;
183183
}
184184

185-
$indexInstance = $this->searchClient->getIndex($indexName);
185+
$indexInstance = $this->searchClient->index($indexName);
186186

187187
// Get Update status from updateID
188188
$indexInstance->waitForPendingUpdate($apiResponse['updateId']);

src/Engine.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function remove($searchableEntities): array
106106
$result = [];
107107
foreach ($data as $indexName => $objects) {
108108
$result[$indexName] = $this->client
109-
->getIndex($indexName)
109+
->index($indexName)
110110
->deleteDocument(reset($objects));
111111
}
112112

@@ -148,17 +148,17 @@ public function delete(string $indexName): ?array
148148
*
149149
* @param string $query
150150
* @param string $indexName
151-
* @param array $requestOptions
151+
* @param array $searchParams
152152
*
153153
* @return array
154154
*/
155-
public function search(string $query, string $indexName, array $requestOptions): array
155+
public function search(string $query, string $indexName, array $searchParams): array
156156
{
157157
if ('' === $query) {
158158
$query = null;
159159
}
160160

161-
return $this->client->getIndex($indexName)->search($query, $requestOptions);
161+
return $this->client->index($indexName)->rawSearch($query, $searchParams);
162162
}
163163

164164
/**
@@ -172,6 +172,6 @@ public function search(string $query, string $indexName, array $requestOptions):
172172
*/
173173
public function count(string $query, string $indexName, array $requestOptions): int
174174
{
175-
return (int) $this->client->getIndex($indexName)->search($query, $requestOptions)['nbHits'];
175+
return (int) $this->client->index($indexName)->search($query, $requestOptions)['nbHits'];
176176
}
177177
}

src/MeiliSearchBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
*/
1212
final class MeiliSearchBundle extends Bundle
1313
{
14-
const VERSION = '0.2.4';
14+
const VERSION = '0.2.5';
1515
}

tests/TestCase/SettingsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function testUpdateSettings()
9393
]
9494
);
9595

96-
$settings = $this->client->getIndex('sf_phpunit__posts')->getSettings();
96+
$settings = $this->client->index('sf_phpunit__posts')->getSettings();
9797

9898
$this->assertNotEmpty($settings['stopWords']);
9999
$this->assertEquals(['a', 'an', 'the'], $settings['stopWords']);

0 commit comments

Comments
 (0)