Skip to content

Commit e754179

Browse files
authored
Merge pull request #170 from aysetas/master
Fix incorrect query example in `joining-queries.md`
2 parents 71ce832 + 2a195be commit e754179

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/joining-queries.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You can use `ignoreUnmapped` to query multiple indices that may not contain the
2929
```php
3030
$query = Query::nested()
3131
->path('author')
32-
->query(Query::match()->field('author.name')->field('Steven'))
32+
->query(Query::match()->field('author.name')->query('Steven'))
3333
->ignoreUnmapped(true);
3434

3535
$searchResult = Book::searchQuery($query)->execute();
@@ -42,7 +42,7 @@ $searchResult = Book::searchQuery($query)->execute();
4242
```php
4343
$query = Query::nested()
4444
->path('author')
45-
->query(Query::match()->field('author.name')->field('Steven'))
45+
->query(Query::match()->field('author.name')->query('Steven'))
4646
->innerHits(['name' => 'authors']);
4747

4848
$searchResult = Book::searchQuery($query)->execute();
@@ -55,7 +55,7 @@ Use `path` to set a path to the nested field you wish to search in:
5555
```php
5656
$query = Query::nested()
5757
->path('author')
58-
->query(Query::match()->field('author.name')->field('Steven'));
58+
->query(Query::match()->field('author.name')->query('Steven'));
5959

6060
$searchResult = Book::searchQuery($query)->execute();
6161
```
@@ -69,7 +69,7 @@ $searchResult = Book::searchQuery($query)->execute();
6969
// you can make a query using builder
7070
$query = Query::nested()
7171
->path('author')
72-
->query(Query::match()->field('author.name')->field('Steven'));
72+
->query(Query::match()->field('author.name')->query('Steven'));
7373

7474
// or you can define a raw query
7575
$query = [

0 commit comments

Comments
 (0)