First release beta
This commit is contained in:
24
src/TomLingham/Searchy/Matchers/ExactMatcher.php
Normal file
24
src/TomLingham/Searchy/Matchers/ExactMatcher.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php namespace TomLingham\Searchy\Matchers;
|
||||
|
||||
/**
|
||||
* Matches an exact string and applies a high multiplier to bring any exact matches to the top
|
||||
* When sanitize is on, if the expression strips some of the characters from the search query
|
||||
* then this may not be able to match against a string despite entering in an exact match.
|
||||
*
|
||||
* Class ExactMatcher
|
||||
* @package TomLingham\Searchy\Matchers
|
||||
*/
|
||||
|
||||
class ExactMatcher extends BaseMatcher
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $operator = '=';
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $multiplier = 100;
|
||||
|
||||
}
|
Reference in New Issue
Block a user