-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for standalone index fields and query conditions on this fiel…
…ds (#43) * Add support for standalone fields and where conditions * Remove obsolete limitation from README
- Loading branch information
Showing
10 changed files
with
939 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Namoshek\Scout\Database; | ||
|
||
use Laravel\Scout\Builder; | ||
|
||
/** | ||
* A wrapper for indexable data which can be used to mark a field as standalone. | ||
* Such fields will be indexed in separate database columns and are filterable with {@see Builder::where()} for exact matches. | ||
* | ||
* @package Namoshek\Scout\Database | ||
*/ | ||
class StandaloneField | ||
{ | ||
public function __construct(public mixed $value) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.