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);