Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proximityPrecision management methods #606

Merged
merged 4 commits into from
Jan 15, 2024

Conversation

brunoocasali
Copy link
Member

Pre-release work for v1.6.

@brunoocasali brunoocasali added the enhancement New feature or request label Jan 10, 2024
@brunoocasali brunoocasali requested a review from curquiza January 10, 2024 18:26
tests/Settings/ProximityPrecisionTest.php Outdated Show resolved Hide resolved
tests/Settings/ProximityPrecisionTest.php Outdated Show resolved Hide resolved
tests/Settings/ProximityPrecisionTest.php Outdated Show resolved Hide resolved
.code-samples.meilisearch.yaml Outdated Show resolved Hide resolved
Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Bruno

Can you fix PHP stan CI?

@brunoocasali brunoocasali merged commit c5ae8b9 into bump-meilisearch-v1.6.0 Jan 15, 2024
5 of 10 checks passed
@brunoocasali brunoocasali deleted the proximity-precision branch January 15, 2024 01:08
Comment on lines 355 to 357
/**
* @param non-empty-string $type
*/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removed this one?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also I wonder is it an enum or can be anything?

meili-bors bot added a commit that referenced this pull request Jan 15, 2024
609: Update version for the next release (v1.6.0) r=brunoocasali a=meili-bot

_This PR is auto-generated._

The automated script updates the version of meilisearch-php to a new version: "v1.6.0"

**CHANGELOG:**

---

## 🚀 Enhancements

* Add support for the new setting: `proximityPrecision` (#606) brunoocasali
```php
$client->index('books')->getProximityPrecision();
$client->index('books')->updateProximityPrecision('byAttribute');
$client->index('books')->resetProximityPrecision();
```

## 🧪 Experimental enhancement - Hybrid and vector search

⚠️ This is about an experimental feature of Meilisearch. Activate the [`vectorStore` experimental feature to use it](https://www.meilisearch.com/docs/reference/api/experimental_features#configure-experimental-features)

* Add support for the `embedders` settings & Add support for the `hybrid` parameter during search (#608) brunoocasali
```js
$client->index('books')->getEmbedders();
$client->index('books')->updateEmbedders(['default' => ['source' => 'userProvided', 'dimensions' => 1]]);
$client->index('books')->resetEmbedders();
```

## ⚙️ Maintenance/misc

* Declare ``@throws`` in HandlesTasks delegate (#599) `@norkunas`

Thanks again to `@norkunas,` `@brunoocasali!` 🎉


Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
meili-bors bot added a commit that referenced this pull request Jan 17, 2024
610: Use proper typehint for proximityPrecision r=curquiza a=norkunas

# Pull Request

## Related issue
Fixes #606 (comment)

## What does this PR do?
- Declares proper typehint to know what values may be returned/accepted.

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?


Co-authored-by: Tomas <norkunas.tom@gmail.com>
meili-bors bot added a commit to meilisearch/meilisearch-symfony that referenced this pull request Feb 16, 2024
318: Proximity precision r=norkunas a=norkunas

# Pull Request

## Related issue
Fixes #<issue_number>

## What does this PR do?
- Adds support for proximity precision setting

## PR checklist
Please check if your PR fulfills the following requirements:
- [ ] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

I've based this PR on #317 so will rebase if/after it is merged to get rid of the first commit and also meilisearch/meilisearch-php#606 should be merged first

Co-authored-by: Tomas <norkunas.tom@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants