@@ -440,10 +440,10 @@ def test_build_schema(self):
440
440
self .assertEqual (content_field_name , 'text' )
441
441
self .assertEqual (len (mapping ), 4 )
442
442
self .assertEqual (mapping , {
443
- 'text' : {'type' : 'string' , 'analyzer' : 'snowball' , 'store' : 'yes' },
444
- 'pub_date' : {'store' : 'yes' , ' type' : 'date' },
445
- 'name' : {'type' : 'string' , 'analyzer' : 'snowball' , 'store' : 'yes' },
446
- 'name_exact' : {'index' : 'not_analyzed' , 'store' : 'yes' , ' type' : 'string' }
443
+ 'text' : {'type' : 'string' , 'analyzer' : 'snowball' },
444
+ 'pub_date' : {'type' : 'date' },
445
+ 'name' : {'type' : 'string' , 'analyzer' : 'snowball' },
446
+ 'name_exact' : {'index' : 'not_analyzed' , 'type' : 'string' }
447
447
})
448
448
449
449
ui = UnifiedIndex ()
@@ -452,21 +452,21 @@ def test_build_schema(self):
452
452
self .assertEqual (content_field_name , 'text' )
453
453
self .assertEqual (len (mapping ), 15 )
454
454
self .assertEqual (mapping , {
455
- 'name' : {'type' : 'string' , 'analyzer' : 'snowball' , 'store' : 'yes' },
456
- 'is_active_exact' : {'store' : 'yes' , ' type' : 'boolean' },
457
- 'created' : {'store' : 'yes' , ' type' : 'date' },
458
- 'post_count' : {'store' : 'yes' , ' type' : 'long' },
459
- 'created_exact' : {'store' : 'yes' , ' type' : 'date' },
460
- 'sites_exact' : {'index' : 'not_analyzed' , 'store' : 'yes' , ' type' : 'string' },
461
- 'is_active' : {'store' : 'yes' , ' type' : 'boolean' },
462
- 'sites' : {'type' : 'string' , 'analyzer' : 'snowball' , 'store' : 'yes' },
463
- 'post_count_i' : {'store' : 'yes' , ' type' : 'long' },
464
- 'average_rating' : {'store' : 'yes' , ' type' : 'float' },
465
- 'text' : {'type' : 'string' , 'analyzer' : 'snowball' , 'store' : 'yes' },
466
- 'pub_date_exact' : {'type' : 'date' , 'store' : 'yes' },
467
- 'name_exact' : {'index' : 'not_analyzed' , 'store' : 'yes' , ' type' : 'string' },
468
- 'pub_date' : {'store' : 'yes' , ' type' : 'date' },
469
- 'average_rating_exact' : {'store' : 'yes' , ' type' : 'float' }
455
+ 'name' : {'type' : 'string' , 'analyzer' : 'snowball' },
456
+ 'is_active_exact' : {'type' : 'boolean' },
457
+ 'created' : {'type' : 'date' },
458
+ 'post_count' : {'type' : 'long' },
459
+ 'created_exact' : {'type' : 'date' },
460
+ 'sites_exact' : {'index' : 'not_analyzed' , 'type' : 'string' },
461
+ 'is_active' : {'type' : 'boolean' },
462
+ 'sites' : {'type' : 'string' , 'analyzer' : 'snowball' },
463
+ 'post_count_i' : {'type' : 'long' },
464
+ 'average_rating' : {'type' : 'float' },
465
+ 'text' : {'type' : 'string' , 'analyzer' : 'snowball' },
466
+ 'pub_date_exact' : {'type' : 'date' },
467
+ 'name_exact' : {'index' : 'not_analyzed' , 'type' : 'string' },
468
+ 'pub_date' : {'type' : 'date' },
469
+ 'average_rating_exact' : {'type' : 'float' }
470
470
})
471
471
472
472
def test_verify_type (self ):
@@ -1071,26 +1071,21 @@ def test_build_schema(self):
1071
1071
'name_auto' : {
1072
1072
'type' : 'string' ,
1073
1073
'analyzer' : 'edgengram_analyzer' ,
1074
- 'store' : 'yes'
1075
1074
},
1076
1075
'text' : {
1077
1076
'type' : 'string' ,
1078
1077
'analyzer' : 'snowball' ,
1079
- 'store' : 'yes'
1080
1078
},
1081
1079
'pub_date' : {
1082
- 'store' : 'yes' ,
1083
1080
'type' : 'date'
1084
1081
},
1085
1082
'name' : {
1086
1083
'type' : 'string' ,
1087
1084
'analyzer' : 'snowball' ,
1088
- 'store' : 'yes'
1089
1085
},
1090
1086
'text_auto' : {
1091
1087
'type' : 'string' ,
1092
1088
'analyzer' : 'edgengram_analyzer' ,
1093
- 'store' : 'yes'
1094
1089
}
1095
1090
})
1096
1091
0 commit comments