Skip to content

Commit f8e9fa0

Browse files
committed
documentation
1 parent dd4b11e commit f8e9fa0

File tree

7 files changed

+7
-13
lines changed

7 files changed

+7
-13
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"php": ">=7.4",
2828
"ext-json": "*",
2929
"ext-curl": "*",
30-
"spameri/elastic-query": "^v1.0.0-alpha.13",
30+
"spameri/elastic-query": "^v1.0.0",
3131
"elasticsearch/elasticsearch": "^7.12.0",
3232
"nette/di": "^3.0.5",
3333
"nette/utils": "^3.2.5",

doc/00_quick_start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public function buildQuery(?string $queryString): \Spameri\ElasticQuery\ElasticQ
401401
{
402402
$query = new \Spameri\ElasticQuery\ElasticQuery();
403403
$query->addShouldQuery(
404-
new \Spameri\ElasticQuery\Query\Match(
404+
new \Spameri\ElasticQuery\Query\ElasticMatch(
405405
'name',
406406
$queryString
407407
)
@@ -423,7 +423,7 @@ $subQuery = new \Spameri\ElasticQuery\Query\QueryCollection();
423423

424424
```php
425425
$subQuery->addShouldQuery(
426-
new \Spameri\ElasticQuery\Query\Match(
426+
new \Spameri\ElasticQuery\Query\ElasticMatch(
427427
'name',
428428
$queryString,
429429
3,
@@ -446,7 +446,7 @@ $subQuery->addShouldQuery(
446446
)
447447
);
448448
$subQuery->addShouldQuery(
449-
new \Spameri\ElasticQuery\Query\Match(
449+
new \Spameri\ElasticQuery\Query\ElasticMatch(
450450
'content',
451451
$queryString,
452452
1,

doc/01_intro.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ $result = $this->clientProvider->client()->search(
4141
$index,
4242
new \Spameri\ElasticQuery\Document\Body\Plain(
4343
$elasticQuery->toArray()
44-
),
45-
$index
44+
)
4645
)
4746
)->toArray()
4847
);

doc/09_match_get.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $elasticQuery->query()->must()->add(
1616
)
1717
);
1818
$elasticQuery->query()->must()->add(
19-
new \Spameri\ElasticQuery\Query\Match(
19+
new \Spameri\ElasticQuery\Query\ElasticMatch(
2020
'name',
2121
'Avengers'
2222
)

doc/11_entity_factory.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Entity factory
22

33
## Description
4-
TODO
54
Creates entity from result hit.
65

76
## Example

doc/12_entity_service.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Entity service
22

33
## Description
4-
TODO
54
Every service should extend BaseService which has all methods for entity manipulation. Like **Insert**, **Get**,
65
**GetBy**, **GetAllBy**.
76

doc/13_advanced_get.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Advanced Get
22

3-
## Description
4-
5-
63
## Example
74
In this example we want videos with tag **action** and are public. Also we want only first 50 sorted by year, but if
85
year has multiple videos sort them by score. Bonus points if movie is on beach with someone named john or here
@@ -24,7 +21,7 @@ $elasticQuery = new \Spameri\ElasticQuery\ElasticQuery(
2421
)
2522
),
2623
new \Spameri\ElasticQuery\Query\ShouldCollection(
27-
new \Spameri\ElasticQuery\Query\Match(
24+
new \Spameri\ElasticQuery\Query\ElasticMatch(
2825
'story.description',
2926
'beach'
3027
),

0 commit comments

Comments
 (0)