Skip to content

Commit

Permalink
Update usage.md
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-zicht authored Nov 28, 2022
1 parent 659695f commit 7253c1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,9 @@ works fine with Elasticsearch up to version 7.6, it _will_ result in an error li

>[bool] failed to parse field [should]

with version 7.7 and above.
with version 7.7 and above. Rewriting your code as follows is a possible workaround:

```php
$boolQuery->addShould($fieldQuery);
$boolQuery->addShould($tagsQuery);
```

0 comments on commit 7253c1c

Please sign in to comment.