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
@@ -117,14 +117,14 @@ public void search_2_conditions_in_not_filter_should_return_2_items()
117
117
.Where(notFilter)
118
118
.ToQuery()
119
119
.BuildQueries();
120
-
varrs=query.GetResultAsync<HomePage>().Result;
120
+
varrs=awaitquery.GetResultAsync<HomePage>();
121
121
Assert.IsTrue(rs.Content.Hits.First().Name.Equals("Home 4"),"Expected 'Home 4' to match NOT filter with 2 conditions, but found '"+rs.Content.Hits.First().Name+"'.");
@@ -28,7 +28,7 @@ public static void ClassInitialize(TestContext testContext)
28
28
MainBodySearchable="Semantic search is supported on searchable string fields, and for the full-text search operators contains and match. It is recommended to set fields that have a lot of content (such as the MainBody in the Optimizely CMS) as searchable to unlock the full-text search capabilities. Optimizely Graph uses a pre-trained model for semantic search.",
@@ -33,15 +33,15 @@ public void search_with_string_facet_should_return_2_facets()
33
33
.OrderType(OrderType.VALUE))
34
34
.ToQuery()
35
35
.BuildQueries();
36
-
varrs=query.GetResultAsync<HomePage>().Result;
36
+
varrs=awaitquery.GetResultAsync<HomePage>();
37
37
Assert.IsTrue(rs.Content.Facets["IsSecret"].First().Count.Equals(2),"Expected 2 facets for 'IsSecret' with value 'true', but found "+rs.Content.Facets["IsSecret"].First().Count+".");
38
38
Assert.IsTrue(rs.Content.Facets["IsSecret"].First().Name.Equals("true"),"Expected first facet name to be 'true', but found '"+rs.Content.Facets["IsSecret"].First().Name+"'.");
39
39
Assert.IsTrue(rs.Content.Facets["IsSecret"].Last().Count.Equals(2),"Expected 2 facets for 'IsSecret' with value 'false', but found "+rs.Content.Facets["IsSecret"].Last().Count+".");
40
40
Assert.IsTrue(rs.Content.Facets["IsSecret"].Last().Name.Equals("false"),"Expected last facet name to be 'false', but found '"+rs.Content.Facets["IsSecret"].Last().Name+"'.");
Assert.IsTrue(rs.Content.Facets["Priority"].Count().Equals(2),"Expected 2 facets for 'Priority', but found "+rs.Content.Facets["Priority"].Count()+".");
55
55
Assert.IsTrue(rs.Content.Facets["Priority"].First().Name.Equals("[100,200)"),"Expected first priority facet to be in range [100,200), but found '"+rs.Content.Facets["Priority"].First().Name+"'.");
56
56
Assert.IsTrue(rs.Content.Facets["Priority"].First().Count.Equals(2),"Expected 2 items in the first priority range, but found "+rs.Content.Facets["Priority"].First().Count+".");
57
57
Assert.IsTrue(rs.Content.Facets["Priority"].Last().Name.Equals("[200,300)"),"Expected last priority facet to be in range [200,300), but found '"+rs.Content.Facets["Priority"].Last().Name+"'.");
58
58
Assert.IsTrue(rs.Content.Facets["Priority"].Last().Count.Equals(0),"Expected 0 items in the last priority range, but found "+rs.Content.Facets["Priority"].Last().Count+".");
Assert.IsTrue(rs.Content.Facets["IsSecret"].Count().Equals(2),"Expected 2 facets for 'IsSecret', but found "+rs.Content.Facets["IsSecret"].Count()+".");
71
71
Assert.IsTrue(rs.Content.Hits.Count().Equals(2),"Expected 2 items when filtering by 'IsSecret'='true', but found "+rs.Content.Hits.Count()+".");
0 commit comments