Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit 40ded37

Browse files
author
Caleb Bertsch
committed
Update docs to reflect ordered parameter query.
1 parent 7384b37 commit 40ded37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ would produce the following query in `NATURAL_LANGUAGE` mode:
126126

127127

128128
```sql
129-
select * from `posts` where MATCH(content,meta) AGAINST(:_search IN NATURAL LANGUAGE MODE)
129+
select * from `posts` where MATCH(content,meta) AGAINST(? IN NATURAL LANGUAGE MODE)
130130
```
131131

132132
and the following query in `BOOLEAN` mode:
133133

134134
```sql
135-
select * from `posts` where MATCH(content,meta) AGAINST(:_search IN BOOLEAN MODE)
135+
select * from `posts` where MATCH(content,meta) AGAINST(? IN BOOLEAN MODE)
136136
```
137137

138138
Operators for `BOOLEAN` mode should be passed as part of the search string.
@@ -143,7 +143,7 @@ For more information see the
143143

144144
### LIKE and LIKE_EXPANDED Modes
145145

146-
`LIKE` and `LIKE_EXPANDED` modes will run `WHERE LIKE %:_search%` queries that will include all of the Model's fields
146+
`LIKE` and `LIKE_EXPANDED` modes will run `WHERE LIKE %?%` queries that will include all of the Model's fields
147147
returned from `toSearchableArray()`. `LIKE_EXPANDED` mode will query each field using each individual word in the search string.
148148

149149
For example running a search on a `Customer` model with the following database structure:

0 commit comments

Comments
 (0)