File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 = [
You can’t perform that action at this time.
0 commit comments