1 | <?php |
||
20 | class DummySearchService extends AbstractSearchService { |
||
21 | |||
22 | /** |
||
23 | * |
||
24 | * @var Document[] |
||
25 | */ |
||
26 | protected $index = array(); |
||
27 | |||
28 | protected function createDocumentId(Document $document) { |
||
39 | |||
40 | /** |
||
41 | * |
||
42 | * {@inheritDoc} |
||
43 | * |
||
44 | * @see \StingerSoft\EntitySearchBundle\Services\SearchService::clearIndex() |
||
45 | */ |
||
46 | public function clearIndex() { |
||
49 | |||
50 | /** |
||
51 | * |
||
52 | * {@inheritDoc} |
||
53 | * |
||
54 | * @see \StingerSoft\EntitySearchBundle\Services\SearchService::saveDocument() |
||
55 | */ |
||
56 | public function saveDocument(Document $document) { |
||
59 | |||
60 | /** |
||
61 | * |
||
62 | * {@inheritDoc} |
||
63 | * |
||
64 | * @see \StingerSoft\EntitySearchBundle\Services\SearchService::removeDocument() |
||
65 | */ |
||
66 | public function removeDocument(Document $document) { |
||
69 | |||
70 | /** |
||
71 | * |
||
72 | * {@inheritDoc} |
||
73 | * |
||
74 | * @see \StingerSoft\EntitySearchBundle\Services\SearchService::autocomplete() |
||
75 | */ |
||
76 | public function autocomplete($search, $maxResults = 10) { |
||
90 | |||
91 | /** |
||
92 | * |
||
93 | * {@inheritDoc} |
||
94 | * |
||
95 | * @see \StingerSoft\EntitySearchBundle\Services\SearchService::search() |
||
96 | */ |
||
97 | public function search(Query $query) { |
||
128 | |||
129 | /** |
||
130 | * |
||
131 | * {@inheritDoc} |
||
132 | * |
||
133 | * @see \StingerSoft\EntitySearchBundle\Services\SearchService::getIndexSize() |
||
134 | */ |
||
135 | public function getIndexSize() { |
||
138 | } |