Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Commit f7cd986

Browse files
committed
- Decoupled unit tests from Laravel framework
- Fixed README file
1 parent 266ce44 commit f7cd986

23 files changed

+4142
-1576
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
vendor
2-
composer.lock
1+
vendor

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Check out its [features](#features)!
1616

1717
## Contents
1818

19-
* [Tutorial](#tutorial)
2019
* [Features](#features)
2120
* [Requirements](#requirements)
2221
* [Installation](#installation)
@@ -30,11 +29,6 @@ Check out its [features](#features)!
3029
* [Zero downtime migration](#zero-downtime-migration)
3130
* [Debug](#debug)
3231

33-
## Tutorial
34-
35-
For your convenience I wrote step-by-step tutorial - [How to make Laravel and Elasticsearch become friends](https://medium.com/@babenko.i.a/how-to-make-laravel-and-elasticsearch-become-friends-55ed7690331c).
36-
There are information about Elasticsearch installation and the package usage examples, don't miss it!
37-
3832
## Features
3933

4034
* An easy way to [configure](#index-configurator) and [create](#console-commands) an Elasticsearch index.
@@ -319,8 +313,8 @@ The default search rule returns the following payload:
319313
```php
320314
return [
321315
'must' => [
322-
'match' => [
323-
'_all' => $this->builder->query
316+
'query_string' => [
317+
'query' => $this->builder->query
324318
]
325319
]
326320
];

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@
2121
}
2222
],
2323
"require": {
24-
"elasticsearch/elasticsearch": "^6.0",
25-
"laravel/scout": "^3.0"
24+
"elasticsearch/elasticsearch": "6.*",
25+
"laravel/scout": "3.*"
26+
},
27+
"require-dev": {
28+
"phpunit/phpunit": "6.*",
29+
"mockery/mockery": "0.9.*"
2630
},
2731
"autoload": {
2832
"psr-4": {

0 commit comments

Comments
 (0)