mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
Added test to ensure ftcreate vamana compatibility (#1578)
* Added test to ensure ftcreate vamana compatibility * updated changelog
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
- Added support for `XPENDING` command (#1558)
|
||||
- Added support for `XSETID` command (#1559)
|
||||
- Added validation and support for the new `BITOP` command operations (#1566)
|
||||
- Added test validation for the new SVS-VAMANA vector index type for FT.CREATE (#1578)
|
||||
|
||||
### Changed
|
||||
- Handle and retry `LOADING` errors from Sentinel replicas (#1536)
|
||||
|
||||
@@ -275,4 +275,21 @@ class FTCREATE_Test extends PredisCommandTestCase
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @requiresRedisVersion >= 8.2.0
|
||||
* @return void
|
||||
*/
|
||||
public function testVectorCreateVANAMA(): void
|
||||
{
|
||||
$redis = $this->getClient();
|
||||
|
||||
$this->assertEquals('OK', $redis->ftcreate('test', [
|
||||
new VectorField(
|
||||
'svs-vanama', 'SVS-VAMANA',
|
||||
['TYPE', 'FLOAT32', 'DIM', 4, 'DISTANCE_METRIC', 'L2']
|
||||
),
|
||||
]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user