| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace tw\lib\search;
- abstract class Searcher
- {
- /**
- * remove an index (container of documents)
- */
- function removeIndex(string $name)
- {
- }
- /**
- * switch current document indexing process to new index
- */
- function switchIndex(string $name)
- {
- }
- /**
- * index a document
- */
- function indexDoc(array $doc)
- {
- }
- /**
- * remove an indexed document
- */
- function removeDoc(string $docId)
- {
- }
- /**
- * rebuild all indexes of products
- *
- * internally, this will first remove all indexed docs,
- * and second, index products one by one(or batchly, it depends on the way the provider's API implements)
- *
- */
- function reindexProducts()
- {
- }
- }
|