@@ -643,24 +643,24 @@ def test_explaincli(client):
643643
644644
645645@pytest .mark .redismod
646- @skip_if_server_version_gte ("7.9.0" )
647646def test_summarize (client ):
648647 createIndex (client .ft ())
649648 waitForIndex (client , getattr (client .ft (), "index_name" , "idx" ))
650649
651- q = Query ("king henry" ).paging (0 , 1 )
650+ q = Query ("\" king henry\" " ).paging (0 , 1 )
652651 q .highlight (fields = ("play" , "txt" ), tags = ("<b>" , "</b>" ))
653652 q .summarize ("txt" )
654653
655654 if is_resp2_connection (client ):
655+ print (client .ft ().search (q ).docs )
656656 doc = sorted (client .ft ().search (q ).docs )[0 ]
657657 assert "<b>Henry</b> IV" == doc .play
658658 assert (
659659 "ACT I SCENE I. London. The palace. Enter <b>KING</b> <b>HENRY</b>, LORD JOHN OF LANCASTER, the EARL of WESTMORELAND, SIR... " # noqa
660660 == doc .txt
661661 )
662662
663- q = Query ("king henry" ).paging (0 , 1 ).summarize ().highlight ()
663+ q = Query ("\" king henry\" " ).paging (0 , 1 ).summarize ().highlight ()
664664
665665 doc = sorted (client .ft ().search (q ).docs )[0 ]
666666 assert "<b>Henry</b> ... " == doc .play
@@ -676,7 +676,7 @@ def test_summarize(client):
676676 == doc ["extra_attributes" ]["txt" ]
677677 )
678678
679- q = Query ("king henry" ).paging (0 , 1 ).summarize ().highlight ()
679+ q = Query ("\" king henry\" " ).paging (0 , 1 ).summarize ().highlight ()
680680
681681 doc = sorted (client .ft ().search (q )["results" ])[0 ]
682682 assert "<b>Henry</b> ... " == doc ["extra_attributes" ]["play" ]
0 commit comments