Fix sort by vector query

This commit is contained in:
ozanarmagan 2023-10-24 19:12:18 +03:00
parent 0d96024173
commit 9cc8f88310
2 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -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",