File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -51,17 +51,17 @@ async def test_manual(self):
51
51
indexApi = manticoresearch .IndexApi (client )
52
52
indexApi .bulk ('\n ' .join (map (json .dumps ,docs )))
53
53
54
- search_request = SearchRequest (
55
- table = "movies" ,
56
- )
57
- matchFilter = QueryFilter ()
58
- matchFilter .match = {"title" :"4" }
59
- mustCond = [ matchFilter ]
60
- boolFilter = BoolFilter (must = mustCond )
61
- searchQuery = SearchQuery (bool = {"must" : [ {"match" : {"title" :"4" }}] })
62
- search_request .query = searchQuery
54
+ search_request = SearchRequest (
55
+ table = "movies" ,
56
+ )
57
+ matchFilter = QueryFilter ()
58
+ matchFilter .match = {"title" :"4" }
59
+ mustCond = [ matchFilter ]
60
+ boolFilter = BoolFilter (must = mustCond )
61
+ searchQuery = SearchQuery (bool = {"must" : [ {"match" : {"title" :"4" }}] })
62
+ search_request .query = searchQuery
63
63
64
- async with manticoresearch . ApiClient ( self . configuration ) as client :
64
+
65
65
searchApi = manticoresearch .SearchApi (client )
66
66
res = searchApi .search (search_request )
67
67
pprint (res )
You can’t perform that action at this time.
0 commit comments