You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
875 B

  1. <?php
  2. namespace TomLingham\Searchy\SearchDrivers;
  3. class FuzzySearchUnicodeDriver extends BaseSearchDriver
  4. {
  5. /**
  6. * @var array
  7. */
  8. protected $matchers = [
  9. \TomLingham\Searchy\Matchers\ExactMatcher::class => 100,
  10. \TomLingham\Searchy\Matchers\StartOfStringMatcher::class => 50,
  11. \TomLingham\Searchy\Matchers\AcronymUnicodeMatcher::class => 42,
  12. \TomLingham\Searchy\Matchers\ConsecutiveCharactersUnicodeMatcher::class => 40,
  13. \TomLingham\Searchy\Matchers\StartOfWordsMatcher::class => 35,
  14. \TomLingham\Searchy\Matchers\StudlyCaseUnicodeMatcher::class => 32,
  15. \TomLingham\Searchy\Matchers\InStringMatcher::class => 30,
  16. \TomLingham\Searchy\Matchers\TimesInStringMatcher::class => 8,
  17. ];
  18. }