You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Tests/Nest.Tests.Unit/BigBadUrlUnitTests.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ public void TestAllTheUrls()
110
110
Do("PUT","/mydefaultindex/doc/_mapping", c =>c.Map<Doc>(m =>m.MapFromAttributes()));
111
111
Do("PUT","/mycustomindex/doc/_mapping", c =>c.Map<Doc>(m =>m.Index("mycustomindex")));
112
112
Do("PUT","/mycustomindex/customtype/_mapping", c =>c.Map<Doc>(m =>m.Index("mycustomindex").Type("customtype")));
113
-
Do("GET","/mydefaultindex/doc/1/_mlt", c =>c.MoreLikeThis<Doc>(m =>m.Id(newDoc{Id="1"})));
113
+
Do("GET","/mydefaultindex/doc/1/_mlt", c =>c.MoreLikeThis<Doc>(m =>m.IdFrom(newDoc{Id="1"})));
114
114
Do("GET","/mydefaultindex/doc/1/_mlt", c =>c.MoreLikeThis<Doc>(m =>m.Id(1)));
115
115
Do("GET","/mycustomindex/mycustomtype/1/_mlt", c =>c.MoreLikeThis<Doc>(m =>m.Id(1).Index("mycustomindex").Type("mycustomtype")));
116
116
Do("POST","/_msearch", c =>c.MultiSearch(m =>m.Search<Doc>(s =>s.MatchAll())));
@@ -150,8 +150,8 @@ public void TestAllTheUrls()
150
150
Do("GET","/mydefaultindex/_status", c =>c.Status(s =>s.Index<Doc>()));
151
151
Do("DELETE","/mydefaultindex/.percolator/mypercolator", c =>c.UnregisterPercolator<ElasticsearchProject>("mypercolator"));
152
152
Do("DELETE","/mycustomindex/.percolator/mypercolator", c =>c.UnregisterPercolator<ElasticsearchProject>("mypercolator", r =>r.Index("mycustomindex")));
153
-
Do("POST","/mydefaultindex/doc/1/_update", c =>c.Update<Doc,OtherDoc>(u =>u.Id(1).PartialDocument(newOtherDoc{Name="asd"})));
154
-
Do("POST","/mydefaultindex/customtype/1/_update", c =>c.Update<Doc,OtherDoc>(u =>u.Id(1).Type("customtype").PartialDocument(newOtherDoc{Name="asd"})));
153
+
Do("POST","/mydefaultindex/doc/1/_update", c =>c.Update<Doc,OtherDoc>(u =>u.Id(1).Doc(newOtherDoc{Name="asd"})));
154
+
Do("POST","/mydefaultindex/customtype/1/_update", c =>c.Update<Doc,OtherDoc>(u =>u.Id(1).Type("customtype").Doc(newOtherDoc{Name="asd"})));
155
155
Do("PUT","/mydefaultindex/_settings", c =>c.UpdateSettings(u =>u.AutoExpandReplicas(false)));
156
156
Do("PUT","/mycustomindex/_settings", c =>c.UpdateSettings(u =>u.Index("mycustomindex").AutoExpandReplicas(false)));
157
157
Do("POST","/_all/doc/_validate/query", c =>c.Validate<Doc>(v =>v.AllIndices()));
0 commit comments