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):
5151 indexApi = manticoresearch .IndexApi (client )
5252 indexApi .bulk ('\n ' .join (map (json .dumps ,docs )))
5353
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
6363
64- async with manticoresearch . ApiClient ( self . configuration ) as client :
64+
6565 searchApi = manticoresearch .SearchApi (client )
6666 res = searchApi .search (search_request )
6767 pprint (res )
You can’t perform that action at this time.
0 commit comments