Skip to content

Releases: meilisearch/meilisearch-php

v1.5.0 🐘

20 Nov 14:35
c5d217c
Compare
Choose a tag to compare

This version introduces features released on Meilisearch v1.5.0 πŸŽ‰
Check out the changelog of Meilisearch v1.5.0 for more information on the changes.

⚠️ If you want to adopt new features of this release, update the Meilisearch server to the appropriate version.

πŸš€ Enhancements

  • Needs Meilisearch v1.5.0 -> Add new method createSnapshot() to trigger snapshot creation. Similar to the already existing createDump() for dumps (#587) @brunoocasali

βš™οΈ Maintenance/misc

v1.4.1 🐘

25 Oct 09:40
d1cea3b
Compare
Choose a tag to compare

πŸ› Bug Fixes

  • Fix an unexpected breaking change in v1.4.0 when passing a empty masterkey (#585) @mmachatschek

Thanks again to @mmachatschek! πŸŽ‰

v1.4.0 🐘

25 Sep 11:47
956e267
Compare
Choose a tag to compare

This version introduces features released on Meilisearch v1.4.0 πŸŽ‰
Check out the changelog of Meilisearch v1.4.0 for more information on the changes.

⚠️ If you want to adopt new features of this release, update the Meilisearch server to the according version.

πŸš€ Enhancements

  • Needs Meilisearch v1.4.0 -> Add support for the new setting: dictionary (#574) @alallema
$index->getDictionary();
$index->updateDictionary(['J. R. R.', 'W. E. B.']);
$index->resetDictionary();
  • Needs Meilisearch v1.4.0 -> Add support for the new setting: separator-tokens (#574) @alallema
$index->getSeparatorTokens();
$index->updateSeparatorTokens(['|', '…']);
$index->resetSeparatorTokens();
  • Needs Meilisearch v1.4.0 -> Add support for the new setting: non-separator-tokens (#574) @alallema
$index->getNonSeparatorTokens();
$index->updateNonSeparatorTokens(['@', '#']);
$index->resetNonSeparatorTokens();

⚠️ Warning usage with v1.4.0

A bug fix in Meilisearch v1.4.0 introduces a breaking change in the filter usage. It only concerns users using the filter search parameter with \.
Explanation and change to apply are detailed in the Meilisearch v1.4.0

Thanks again to @alallema, @brunoocasali, @curquiza, @dependabot, @dependabot[bot], @meili-bors[bot], and @norkunas! πŸŽ‰

v1.3.0 🐘

31 Jul 12:39
ba2756a
Compare
Choose a tag to compare

This version introduces features released on Meilisearch v1.3.0 πŸŽ‰
Check out the changelog of Meilisearch v1.3.0 for more information on the changes.

⚠️ If you want to adopt new features of this release, update the Meilisearch server to the according version.

πŸš€ Enhancements

  • Add a base exception interface all exceptions must implement (#534) @94noni
  • ⚠️ EXPERIMENTAL: setShowRankingScoreDetails and search(['showRankingScoreDetails' => boolean]) to show the scores of each relevant document returned in the search.
  • ⚠️ EXPERIMENTAL: setVector and search(['vector' => [...]]) to enable vector search capabilities.
  • Add setAttributesToSearchOn and search(['attributesToSearchOn' => [...]])
  • index->facetSearch(FacetSearchQuery params) to search only in facets.

⚠️ The EXPERIMENTAL features are not covered by semver. To explicitly opt-in, check this guide.

πŸ’… Misc

  • Migrate docs hosting to Meilisearch subdomain (#553) @Strift
  • Update SDK docs link in README.md (#556) @Strift
  • [DX] Improve quality of Client class & related (#514) @stloyd
  • [DX] Add support for PHPUnit 10.1 (#516) @stloyd

Thanks again to @94noni, @Strift, @alallema, @brunoocasali, @norkunas and @stloyd! πŸŽ‰

v1.2.1 🐘

06 Jun 20:56
c153714
Compare
Choose a tag to compare

πŸ› Bug Fixes

  • Fix fetching documents by getDocuments with filters and fields being set in DocumentsQuery (#523) @panzer-punk
  • Remove duplicated key on code-samples (#520) @justkahdri

Thanks again to @justkahdri, @panzer-punk! πŸŽ‰

v1.2.0 🐘

05 Jun 11:48
e48fc6c
Compare
Choose a tag to compare

This version introduces features released on Meilisearch v1.2.0 πŸŽ‰
Check out the changelog of Meilisearch v1.2.0 for more information on the changes.
⚠️ If you want to adopt new features of this release, update the Meilisearch server to the according version.

πŸš€ Enhancements

  • The method deleteDocuments() now supports a different behavior. This method could take an array containing a filter key with the filter value, which will filter and delete the documents. #509 @brunoocasali

    ⚠️ You must configure the attributes you want to filter using the Index\filterableAttributes().
    ⚠️ Remember to update your Meilisearch server to v1.2.0 or newer before adopting it.

    Still, even being supported, the ability to receive only a list of ids is deprecated, and it will be removed in meilisearch-php v2

  • Add the ability to setFilter in the DocumentsQuery. When a query with a filter is sent to getDocuments(DocumentsQuery $query) it will filter the documents similar to the search method. See the docs on how to use filters. #510 @brunoocasali

    ⚠️ You must configure the attributes you want to filter using the Index\filterableAttributes().
    ⚠️ Remember to update your Meilisearch server to v1.2.0 or newer before adopting it.

Thanks again to @brunoocasali, @tacman, @norkunas! πŸŽ‰

v1.1.0

03 Apr 10:18
950d587
Compare
Choose a tag to compare

This version introduces features released on Meilisearch v1.1.0 πŸŽ‰
Check out the changelog of Meilisearch v1.1.0 for more information on the changes.
If you want to adopt new features of this release, update the Meilisearch server to the according version.

πŸš€ Enhancements

  • Add a new optional argument to addDocumentsCsv, addDocumentsCsvInBatches, and updateDocumentsCsvInBatches. This argument allows you to customize the separator character in your csv file. (#480) @brunoocasali
  • Add a new getter, the facetStats on SearchResult (#487) @brunoocasali.
  • Add $client->multiSearch() method to execute multiple search requests simultaneously with different configurations. (#481) @brunoocasali
    • Introduce SearchQuery builder class to build the search requests used in the multiSearch.
      Usage example:

      $this->client->multiSearch([
        (new SearchQuery())->setIndexUid('books')
            ->setQuery('princ')
            ->setSort(['author:desc']),
        (new SearchQuery())->setIndexUid('movies')
            ->setQuery('be')
            ->setHitsPerPage(4)
            ->setFilter(['duration-float > 3']),
      ]);
    ⚠️ The SearchQuery was not meant to be used if the regular $index->search() requests (yet).

v1.0.0 🐘

06 Feb 13:31
11f12a2
Compare
Choose a tag to compare

This version makes this package compatible with Meilisearch v1.0.0 πŸŽ‰
Check out the changelog of Meilisearch v1.0.0 for more information on the changes.

πŸ’₯ Breaking Changes

  • Endpoints/Indexes date attributes $createdAt and $updatedAt are DateTime now instead of string. (#457) @brunoocasali
    • Removed getCreatedAtString and getUpdatedAtString functions.
  • Add canceledBy/setCanceledBy in TasksQuery (#454) @brunoocasali
  • Remove next attribute and setNext from TasksQuery. (#454) @brunoocasali
  • Remove next attribute and setNext from DeleteTasksQuery. (#454) @brunoocasali
  • Remove next, canceledBy attributes and setNext, setCanceledBy from CancelTasksQuery. (#454) @brunoocasali
  • Remove deleteAllIndexes, since they don't really delete all the indexes but only the first page. (#454) @brunoocasali
  • Remove getAllRawIndexes function. (#454) @brunoocasali
  • Rename getAllIndexes to getIndexes. (#454) @brunoocasali
  • Move all traits to src/Endpoints/Delegates. (#455) @brunoocasali
    • Meilisearch\Delegates\HandlesIndex to Meilisearch\Endpoints\Delegates\HandlesIndex
    • Meilisearch\Delegates\HandlesSystem to Meilisearch\Endpoints\Delegates\HandlesSystem
    • Meilisearch\Delegates\TasksQueryTrait to Meilisearch\Endpoints\Delegates\TasksQueryTrait

Enhancements

Thanks again to @brunoocasali and @norkunas! πŸŽ‰

v0.27.0 🐘

10 Jan 19:37
e95db9e
Compare
Choose a tag to compare

⚠️ This release has nothing new, and it is just a tag to mark the previous release v0.26.1 as breaking, so v0.27.0.

You should be careful because every occurrence of MeiliSearch, even in the file names were changed to Meilisearch.

More details in the comments section here and here.


Original changelog from v0.26.1:

πŸš€ Enhancements

⚠️ If you handle ::class directly, a change is required, as pointed out #431 (comment)

Thanks again to @brunoocasali and @mmachatschek! πŸŽ‰

[DEPRECATED] v0.26.1 🐘

16 Dec 17:15
05db1b2
Compare
Choose a tag to compare

πŸš€ Enhancements

⚠️ If you handle ::class directly, a change is required, as pointed out #431 (comment)

Thanks again to @brunoocasali and @mmachatschek! πŸŽ‰