Skip to content

Commit

Permalink
Add note about v1 of the package
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist authored Jul 22, 2022
1 parent 39cd8ac commit f853454
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ You can install the package via composer:
composer require spatie/elasticsearch-query-builder
```

> **Note**
> If you're using `elasticsearch/elasticsearch` v7 you need to use [v1](https://github.com/spatie/elasticsearch-query-builder/tree/v1) of this package.
## Basic usage

The only class you really need to interact with is the `Spatie\ElasticsearchQueryBuilder\Builder` class. It requires an `\Elastic\Elasticsearch\Client` passed in the constructor. Take a look at the [ElasticSearch SDK docs](https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/installation.html) to learn more about connecting to your ElasticSearch cluster.
Expand Down

0 comments on commit f853454

Please sign in to comment.