Skip to content

Commit

Permalink
add response method
Browse files Browse the repository at this point in the history
  • Loading branch information
basemkhirat authored Feb 27, 2017
1 parent 91e3f65 commit 00f425c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,13 +580,19 @@ $documents = ES::search("bar")->paginate(5);
$documents->links();

```

##### Getting the query array without execution

```php
$query = ES::search("foo")->where("views", ">", 150)->query();
```

##### Getting the original elasticsearch response

```php
$query = ES::search("foo")->where("views", ">", 150)->response();
```

##### Ignoring bad HTTP response

```php
Expand Down

0 comments on commit 00f425c

Please sign in to comment.