Added test to ensure ftcreate vamana compatibility (#1578)

* Added test to ensure ftcreate vamana compatibility

* updated changelog
This commit is contained in:
Hristo Temelski
2025-07-21 19:48:12 +03:00
committed by GitHub
parent 8e7afbe679
commit 302b63b742
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -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']
),
]));
}
}