1 | <?php |
||
13 | class Index extends LuceneIndex |
||
14 | { |
||
15 | /** |
||
16 | * Index constructor. |
||
17 | * @param Filter $filter |
||
18 | * @param Repository $config |
||
19 | * @param Filesystem $filesystem |
||
20 | */ |
||
21 | 21 | public function __construct(Filter $filter, Repository $config, Filesystem $filesystem) |
|
31 | |||
32 | /** |
||
33 | * @param array $filters |
||
34 | * @param Filesystem $filesystem |
||
35 | */ |
||
36 | 21 | private function addFilters(array $filters = [], Filesystem $filesystem) |
|
42 | |||
43 | /** |
||
44 | * @param $switch |
||
45 | * @param $filter |
||
46 | * @param Filesystem $filesystem |
||
47 | */ |
||
48 | 21 | private function handleFilter($switch, $filter, Filesystem $filesystem) |
|
54 | |||
55 | /** |
||
56 | * @param $filter |
||
57 | * @param $switch |
||
58 | */ |
||
59 | 21 | private function filter($filter, $switch) |
|
63 | |||
64 | /** |
||
65 | * @param $switch |
||
66 | * @param Filesystem $filesystem |
||
67 | */ |
||
68 | 21 | private function stopWordFilter($switch, Filesystem $filesystem) |
|
72 | } |
||
73 |