packagist meilisearch/meilisearch-php v1.1.0

latest releases: dev-staging, dev-main, v1.12.0...
2 years ago

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).

Don't miss a new meilisearch-php release

NewReleases is sending notifications on new releases.