Commit 32b6e97 1 parent 0bac391 commit 32b6e97 Copy full SHA for 32b6e97
File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -449,6 +449,11 @@ mod tests {
449
449
"field" : "score" ,
450
450
} ,
451
451
} ,
452
+ "count_str" : {
453
+ "value_count" : {
454
+ "field" : "text" ,
455
+ } ,
456
+ } ,
452
457
"range" : range_agg
453
458
} ) )
454
459
. unwrap ( ) ;
@@ -514,6 +519,13 @@ mod tests {
514
519
} )
515
520
) ;
516
521
522
+ assert_eq ! (
523
+ res[ "count_str" ] ,
524
+ json!( {
525
+ "value" : 7.0 ,
526
+ } )
527
+ ) ;
528
+
517
529
Ok ( ( ) )
518
530
}
519
531
Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ mod tests {
578
578
. set_indexing_options (
579
579
TextFieldIndexing :: default ( ) . set_index_option ( IndexRecordOption :: WithFreqs ) ,
580
580
)
581
- . set_fast ( None )
581
+ . set_fast ( Some ( "raw" ) )
582
582
. set_stored ( ) ;
583
583
let text_field = schema_builder. add_text_field ( "text" , text_fieldtype) ;
584
584
let date_field = schema_builder. add_date_field ( "date" , FAST ) ;
You can’t perform that action at this time.
0 commit comments