@@ -1657,6 +1657,31 @@ def test_query_group():
16571657 init_client (local_client , secondary_collection_points , SECONDARY_COLLECTION_NAME )
16581658 init_client (http_client , secondary_collection_points , SECONDARY_COLLECTION_NAME )
16591659
1660+ http_client .create_payload_index (
1661+ COLLECTION_NAME , field_name = "id" , field_schema = models .PayloadSchemaType .INTEGER
1662+ )
1663+ http_client .create_payload_index (
1664+ COLLECTION_NAME , field_name = "rand_digit" , field_schema = models .PayloadSchemaType .INTEGER
1665+ )
1666+ http_client .create_payload_index (
1667+ COLLECTION_NAME , field_name = "two_words" , field_schema = models .PayloadSchemaType .KEYWORD
1668+ )
1669+ http_client .create_payload_index (
1670+ COLLECTION_NAME ,
1671+ field_name = "city.name" ,
1672+ field_schema = models .PayloadSchemaType .KEYWORD ,
1673+ )
1674+ http_client .create_payload_index (
1675+ COLLECTION_NAME ,
1676+ field_name = "maybe" ,
1677+ field_schema = models .PayloadSchemaType .KEYWORD ,
1678+ )
1679+ http_client .create_payload_index (
1680+ COLLECTION_NAME ,
1681+ field_name = "maybe_null" ,
1682+ field_schema = models .PayloadSchemaType .KEYWORD ,
1683+ )
1684+
16601685 searcher .group_size = 5
16611686 searcher .limit = 3
16621687 for key in group_by_keys ():
@@ -1683,6 +1708,7 @@ def test_query_group():
16831708 )
16841709
16851710 searcher .group_by = "city.name"
1711+
16861712 for i in range (100 ):
16871713 query_filter = one_random_filter_please ()
16881714 try :
0 commit comments