diff --git a/README.md b/README.md index 14156e4..7b81f14 100644 --- a/README.md +++ b/README.md @@ -66,8 +66,8 @@ client.add_document( res = client.search("search engine") # the result has the total number of results, and a list of documents -print res.total # "1" -print res.docs[0].title +print(res.total) # "2" +print(res.docs[0].title) # "RediSearch" # Searching with complex parameters: q = Query("search engine").verbatim().no_content().with_scores().paging(0, 5) @@ -116,4 +116,4 @@ Finally, invoke the virtual environment and run the tests: . ./venv3/bin/activate REDIS_PORT=6379 python test/test.py REDIS_PORT=6379 python test/test_builder.py -``` \ No newline at end of file +```