@@ -1227,7 +1227,8 @@ func TestClient_InfoFieldsTest(t *testing.T) {
12271227 AddField (NewGeoField ("geo" )).
12281228 AddField (NewNumericField ("numeric" )).
12291229 AddField (NewTextFieldOptions ("alias_type" , TextFieldOptions {As : "type" , Sortable : true , NoIndex : true , NoStem : true })).
1230- AddField (NewTagFieldOptions ("address_city" , TagFieldOptions {As : "city" }))
1230+ AddField (NewTagFieldOptions ("address_city" , TagFieldOptions {As : "city" })).
1231+ AddField (NewTagFieldOptions ("type" , TagFieldOptions {As : "tag" , Sortable : true , CaseSensitive : true , NoIndex : true }))
12311232 // In this example we will only index keys started by product:
12321233 indexDefinition := NewIndexDefinition ().AddPrefix ("ft-info-fields-test:" )
12331234 // Add the Index Definition
@@ -1245,6 +1246,7 @@ func TestClient_InfoFieldsTest(t *testing.T) {
12451246 Field {Name : "numeric" , Type : 1 , Sortable : false , Options : NumericFieldOptions {Sortable : false , NoIndex : false , As : "numeric" }},
12461247 Field {Name : "alias_type" , Type : 0 , Sortable : true , Options : TextFieldOptions {Weight : 1 , Sortable : true , NoStem : true , NoIndex : true , PhoneticMatcher : "" , As : "type" }},
12471248 Field {Name : "address_city" , Type : 3 , Sortable : false , Options : TagFieldOptions {Separator : 44 , NoIndex : false , Sortable : false , CaseSensitive : false , As : "city" }},
1249+ Field {Name : "type" , Type : 3 , Sortable : true , Options : TagFieldOptions {Separator : 44 , NoIndex : true , Sortable : true , CaseSensitive : true , As : "tag" }},
12481250 }),
12491251 info .Schema .Fields )
12501252}
0 commit comments