Update docs and runaway semicolon.

This commit is contained in:
Tom Lingham
2016-01-31 07:55:56 +00:00
parent fd959de449
commit 31d7a1c54e
2 changed files with 7 additions and 1 deletions

View File

@ -74,6 +74,12 @@ For example, if you want to search the name, email address and username of a use
$users = Searchy::users('name', 'email', 'username')->query('John Smith')->get();
```
If you need to build your table list dynamically, you can also pass an array of fields instead as the first argument (All other following arguments will be ignored):
```php
$users = Searchy::users(['name', 'email', 'username'])->query('John Smith')->get();
```
### Searching Joined/Concatenated Columns
Sometimes you may want to leverage searches on concatenated column. For example, on a `first_name` and `last_name` field but you only want to run the one query. To do this can separate columns with a double colon:

View File

@ -125,7 +125,7 @@ abstract class BaseSearchDriver implements SearchDriverInterface
return $this->query
->orderBy($this->relevanceFieldName, 'desc')
->having($this->relevanceFieldName, '>', 0);;
->having($this->relevanceFieldName, '>', 0);
}
/**