From f0a04f0dc44af3c09920d7d7daba836245013a47 Mon Sep 17 00:00:00 2001 From: huglester Date: Sun, 3 Nov 2013 03:35:16 +0200 Subject: [PATCH] repalced with queryBuilder() call --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 704b4ed..2056b8e 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ The library interface is still under flux...this section will be updated once _S ->type("tweet") ->from(0) ->size(10) - ->query(Sherlock::query()->Term()->field("message") + ->query(Sherlock::queryBuilder()->Term()->field("message") ->term("ElasticSearch")); //Execute the search and return results @@ -108,17 +108,17 @@ The library interface is still under flux...this section will be updated once _S //Let's try a more advanced query now. //Each section is it's own variable to help show how everything fits together - $must = Sherlock::query()->Term()->field("message") + $must = Sherlock::queryBuilder()->Term()->field("message") ->term("ElasticSearch"); - $should = Sherlock::query()->Match()->field("author") + $should = Sherlock::queryBuilder()->Match()->field("author") ->query("Zachary Tong") ->boost(2.5); - $must_not = Sherlock::query()->Term()->field("message") + $must_not = Sherlock::queryBuilder()->Term()->field("message") ->term("Solr"); - $bool = Sherlock::query()->Bool->must($must) + $bool = Sherlock::queryBuilder()->Bool->must($must) ->should($should) ->must_not($must_not); $request->query($bool);