Skip to content

Releases: MacFJA/php-redisearch

2.2.0

13 Aug 22:19
Compare
Choose a tag to compare

Added

  • Documentation on paginated responses
  • Throw custom exception is client is missing
  • Add compatibility for Predis version 2.x
  • LOAD ALL option on Aggregate command (RediSearch 2.0.13)
  • Profile command (RediSearch 2.2.0) (Issue#4)
  • Vector feature (RediSearch 2.4.0 / 2.4.2)
  • Add DIALECT option (RediSearch 2.4.3) (Issue#35)
  • (dev) Add make clean to remove all generated files
  • (dev) Add code coverage to \MacFJA\RediSearch\Index
  • (dev) Add integration test for document insertion

Fixed

  • Missing default values on highlight option (Issue#38)
  • Don't throw an exception if the result of the index definition is incorrect (Issue#46)
  • Phpredis extension don't return raw response (Issue#46)
  • Error with version reading if MODULE LIST command is protected (PR#42)

Changed

  • Rework paginated responses
  • Add warning for Predis commands initialization
  • Lazy load RediSearch version and index information in \MacFJA\RediSearch\Index
  • Allow to provide RediSearch version manually to \MacFJA\RediSearch\Index
  • (dev) Remove deprecated --no-suggest option of Composer in the Makefile
  • (dev) Update PHP-CS-Fixer version

Deprecated

  • \MacFJA\RediSearch\Redis\Response\AggregateResponseItem::getValue (use \MacFJA\RediSearch\Redis\Response\AggregateResponseItem::getFieldValue instead)

Thanks to @DvirDukhan, @iMactool, @gaohc001, @vlradstake for their contributions

2.1.2

06 Jun 12:18
Compare
Choose a tag to compare

Fixed

  • Allow Phpredis raw command to have 0 arguments (Issue#39)

Changed

  • (dev) Update version and rules of PHP-CS-Fixer and PHPStan

Thanks to @spondec for the bug report

2.1.1

12 Mar 18:43
Compare
Choose a tag to compare

Fixed

  • Summarize Search option enabled by default (without possibility to disable it) (Issue#26)
  • Highlight Search option enabled by default (without possibility to disable it) (Issue#26)
  • Fix error when parsing response from Search with NOCONTENT flag
  • Make PaginatedResponse valid iterator function work

Thanks to @Leeloo5E for the bug report !

2.1.0

15 Jan 17:31
Compare
Choose a tag to compare

Added

  • Support from JSON document (require RediSearch 2.2) (#23)
  • (dev) GitHub Actions
  • Protection against division by 0

Fixed

  • (dev) Code coverage with XDebug 3
  • (dev) Defined list of allowed Composer plugins
  • Fix PaginatedResponse index (now start at 0, and have a linear progression)

Thanks to @gkorland for the JSON feature request

Version 2.0.0

06 Nov 21:01
Compare
Choose a tag to compare

Added

  • Allow multiple connector for Redis (PR#17)
  • Allow specific feature of RediSearch depending of its version (Issue#6)
  • Add more language (Issue#5)
  • Add more language (Issue#5)
  • Add SORTABLE flag on GEO field (Issue#5)
  • Add CASESENSITIVE flag on fields (Issue#5)
  • Add UNF flag on fields (Issue#5)

Changed

  • Remove hard dependency on Predis (Issue#16)
  • Full rework of the library

Thanks to @anthonymf for pushing the idea of removing the dependency to Predis

Version 1.4.0

06 Sep 18:33
Compare
Choose a tag to compare

Added

  • Implementation of SLOP parameter (PR#8)

Fixed


Thanks to @ghdi for implementing the missing option and @zjttfs for reporting the NoContent issue

Version 1.3.0

16 Mar 19:41
Compare
Choose a tag to compare

Added

  • Shorthand for Reducer functions
  • Add Deprecated section in CHANGELOG.md
  • Add Redis pipeline support
  • Prefix properties name with @ in Aggregation's SortBy (keep BC)
  • Add more unit tests (Aggregation options, Field creation, DataHelper, RedisHelper)
  • (dev) Add mutation testing

Changed

  • Allow GROUPBY with no properties
  • Allow GROUPBY with no reducers
  • (dev) Replace php-parallel-lint lib.
  • (dev) Add Php-Cs-Fixer on tests/
  • (dev) Improve Makefile

Fixed

  • Fix namespace of tests
  • Aggregation result can now be an array
  • Fix Index builder options not preserved (PR#3)
  • Aggregation SortBy allow 0 (not limit) as value for Max
  • Fix helper removing "nullish" values (array_filter is too lax by default)
  • Fix order in fields creation not being correct
  • Don't allow empty facet in search query

Deprecated

  • MacFJA\RediSearch\Aggregate\Exception\NotEnoughPropertiesException
  • MacFJA\RediSearch\Aggregate\Exception\NotEnoughReducersException

Thank to @myriacl & @pierrexp9 for reporting and fixing the index builder (PR#3)

Version 1.2.0

17 Feb 19:59
Compare
Choose a tag to compare

Fixed

  • Bad copy/paste in the README file
  • Allow null value in Aggregate result
  • Use correct namespace in the README file

Added

  • Detection of syntax error from Redis response
  • Allow multiple level of fuzziness
  • Escape values in the query builder

Version 1.1.0

21 Jan 00:01
Compare
Choose a tag to compare

Fixed

  • Wrong output of the NumericFacet (#1, #2) - By @alister
  • Missing Composer plugin
  • Missing getSeparator method in TagField
  • Missing total number of result
  • Fix typo in search parameter (RETURN)
  • Fix prefixes data from index information

Added

  • Unit test on NumericFacet (#2) - By @alister
  • Index stats can return fields as object.
  • Fields implements Comparable interface
  • Paginate results.
  • Syntax error detection in search.

Changed

  • Rename Index::addFromArray to Index::addDocumentFromArray for consistency (Depreciation, keeping BC)
  • Rename namespace from MacFJA\RedisSearch to MacFJA\RediSearch(Depreciation, keeping BC)
  • Uniformize Builder interface (Deprecation, keeping BC)

Deprecated

  • The whole namespace MacFJA\RedisSearch (replaced by MacFJA\RediSearch)
  • MacFJA\RediSearch\Aggregate::aggregate
  • MacFJA\RediSearch\Index::addFromArray
  • MacFJA\RediSearch\Index\Builder::create
  • MacFJA\RediSearch\Search::search

Big thanks to @alister for his contribution!