You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optionaly you need some Symfony Console implementation ie:
18
+
Optionally add a Symfony Console implementation:
19
19
20
-
`````yaml
20
+
```neon
21
21
extensions:
22
-
console: Kdyby\Console\DI\ConsoleExtension
23
-
`````
22
+
console: Contributte\Console\DI\ConsoleExtension
23
+
```
24
+
25
+
Then configure your ElasticSearch connection:
24
26
25
-
Then configure where is your ElasticSearch.
26
27
```neon
27
28
spameriElasticSearch:
28
-
host: 127.0.0.1
29
-
port: 9200
29
+
host: 127.0.0.1
30
+
port: 9200
30
31
```
31
32
32
-
For more config options see default values in `\Spameri\Elastic\DI\SpameriElasticSearchExtension::$defaults`. [Here](../src/DI/ElasticSearchExtension.php#L9).
33
+
For more config options see [Configuration Guide](02_configuration.md).
34
+
35
+
#### Raw Client Usage
36
+
37
+
After configuration you can use ElasticSearch directly:
33
38
34
-
#### Raw client usage
35
-
- After this configuration you are ready to use ElasticSearch in your Nette application.
36
-
- Where needed just inject `\Spameri\Elastic\ClientProvider` and then directly call what you need, like this:
-[Client](https://github.com/elastic/elasticsearch-php/blob/master/src/Elasticsearch/Client.php) is provided from **elasticsearch/elasticsearch** and you can see their [documentation](https://github.com/elastic/elasticsearch-php#quickstart)
50
-
what methods and arrays are supported.
51
-
- When in doubt what how many arrays or how many arguments **match** supports use [Spameri/ElasticQuery](https://github.com/Spameri/ElasticQuery/blob/master/doc/02-query-objects.md)
52
-
- This is library used in later examples. But direct approach is also possible.
51
+
52
+
The client is provided by **elasticsearch/elasticsearch**. See their [documentation](https://github.com/elastic/elasticsearch-php#quickstart).
53
+
54
+
For type-safe queries use [Spameri/ElasticQuery](https://github.com/Spameri/ElasticQuery/blob/master/doc/02-query-objects.md).
0 commit comments