File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed
src/Tests/Nest.Tests.Unit/Search/Query/Singles Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ public void MatchQuery()
1616 . Match ( t=> t
1717 . OnField ( f=> f . Name )
1818 . Query ( "this is a test" )
19+ . MinimumShouldMatch ( "2<80%" )
1920 . Rewrite ( RewriteMultiTerm . ConstantScoreDefault )
2021 )
2122 ) ;
@@ -26,25 +27,13 @@ public void MatchQuery()
2627 match: {
2728 name : {
2829 query : ""this is a test"",
29- rewrite: ""constant_score_default""
30+ rewrite: ""constant_score_default"",
31+ minimum_should_match: ""2<80%""
3032 }
3133 }
3234 }
3335 }" ;
3436 Assert . True ( json . JsonEquals ( expected ) , json ) ;
35- s = new SearchDescriptor < ElasticsearchProject > ( )
36- . From ( 0 )
37- . Size ( 10 )
38- . Query ( q=> q
39- . Match ( t=> t
40- . OnField ( f=> f . Name )
41- . Query ( "this is a test" )
42- . Rewrite ( RewriteMultiTerm . ConstantScoreDefault )
43- )
44- ) ;
45-
46- json = TestElasticClient . Serialize ( s ) ;
47- Assert . True ( json . JsonEquals ( expected ) , json ) ;
4837 }
4938
5039 [ Test ]
You can’t perform that action at this time.
0 commit comments