Skip to content

Commit 84c26d0

Browse files
committed
added a wildcard operator example to README file. Removed 'like' operator from the README file.
1 parent 509df69 commit 84c26d0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ The package is developed and tested under Elasticsearch ``v6.*``. It should be a
234234
| Name | Required | Type | Default | Description |
235235
|:--------:|:--------:|:-----------------------:|:---------:|:-----------------------------------------------------:|
236236
| column | Y | ``callable``,``string`` | | |
237-
| operator | | ``string`` | ``null`` | ``=``,``>``,``<``,``<=``,``>=``,``like``,``!=``,``*`` |
237+
| operator | | ``string`` | ``null`` | ``=``,``>``,``<``,``<=``,``>=``,``!=``,``*`` |
238238
| value | | ``mixed`` | ``null`` | |
239239
| or | | ``bool`` | ``false`` | |
240240
| boost | | ``bool``,``int`` | ``false`` | The weight of the column |
@@ -247,7 +247,12 @@ The package is developed and tested under Elasticsearch ``v6.*``. It should be a
247247
```php
248248
User::es()->where('id', 1)->first()
249249
```
250-
2. ``column`` can be a function
250+
2. ``*`` is the wildcard operator
251+
```php
252+
// Find the user whose name starts with 'Leo'
253+
User::es()->where('name', '*', 'Leo*')->first()
254+
```
255+
3. ``column`` can be a function
251256
```php
252257
User::es()->where(function($q) {
253258
$q->orWhere(...)->orWhere(...);

0 commit comments

Comments
 (0)