File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Nest.Tests.Unit/Search/Query/Singles Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ public void TestFuzzyLikeThisAllQuery()
3838 . LikeText ( "elasticsearcc" )
3939 . PrefixLength ( 3 )
4040 . MaxQueryTerms ( 25 )
41+ . MinimumSimilarity ( 3 )
4142 . IgnoreTermFrequency ( true )
4243 . Boost ( 1.1 )
4344 . Analyzer ( "my_analyzer" )
@@ -50,6 +51,7 @@ public void TestFuzzyLikeThisAllQuery()
5051 like_text : ""elasticsearcc"",
5152 ignore_tf: true,
5253 max_query_terms: 25,
54+ min_similarity: 3,
5355 prefix_length: 3,
5456 boost: 1.1,
5557 analyzer: ""my_analyzer""
Original file line number Diff line number Diff line change @@ -59,6 +59,11 @@ public FuzzyLikeThisDescriptor<T> IgnoreTermFrequency(bool ignore)
5959 this . _IgnoreTermFrequency = ignore ;
6060 return this ;
6161 }
62+ public FuzzyLikeThisDescriptor < T > MinimumSimilarity ( int minSimilarity )
63+ {
64+ this . _MinSimilarity = minSimilarity ;
65+ return this ;
66+ }
6267 public FuzzyLikeThisDescriptor < T > MaxQueryTerms ( int maxQueryTerms )
6368 {
6469 this . _MaxQueryTerms = maxQueryTerms ;
You can’t perform that action at this time.
0 commit comments