mirror of
https://github.com/typesense/typesense.git
synced 2025-05-19 05:08:43 +08:00
Fix sort by vector query
This commit is contained in:
parent
0d96024173
commit
9cc8f88310
@ -572,6 +572,7 @@ struct sort_by {
|
||||
missing_values = other.missing_values;
|
||||
eval = other.eval;
|
||||
reference_collection_name = other.reference_collection_name;
|
||||
vector_query = other.vector_query;
|
||||
}
|
||||
|
||||
sort_by& operator=(const sort_by& other) {
|
||||
|
@ -2471,7 +2471,7 @@ TEST_F(CollectionSortingTest, InvalidVectorDistanceSorting) {
|
||||
ASSERT_EQ("sort_by vector_distance is only supported for vector queries, semantic search and hybrid search.", results.error());
|
||||
}
|
||||
|
||||
TEST_F(CollectionSortingTest, DISABLED_TestSortByVectorQuery) {
|
||||
TEST_F(CollectionSortingTest, TestSortByVectorQuery) {
|
||||
std::string coll_schema = R"(
|
||||
{
|
||||
"name": "coll1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user