From 213f1f878a13e9e35a510c2b75c1992b5116b20e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Mon, 2 Jun 2014 00:04:14 +0600 Subject: [PATCH] Fix readme typos --- README.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index daa8a0654..a3ba4e2d1 100644 --- a/README.rst +++ b/README.rst @@ -55,7 +55,8 @@ With the low-level client you would write something like this: print(hit['_score'], hit['_source']['title']) Which would be very hard to modify (imagine adding another filter to that -query) and is definitely no fun to write. With the python DSL you can write the same query as: +query) and is definitely no fun to write. With the python DSL you can write the +same query as: .. code:: python @@ -63,8 +64,8 @@ query) and is definitely no fun to write. With the python DSL you can write the s = Search(using=es).index("my-index") \ .filter("term", category="search") \ - .search("match", title="python") \ - .search(~Q("match", description="beta")) + .query("match", title="python") \ + .query(~Q("match", description="beta")) response = s.execute() for hit in response: