Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (Store $store, EntityCache $entityCache, FileHandler $fileHandler, FileAttachment $fileAttachment) | |
setOrigin ( $origin) | |
setVersions (array $versions) | |
getIndexName ( $type) | |
noSha1Check () | |
findFile (Title $title) | |
index (DIWikiPage $dataItem, File $file=null) | |
Public Attributes | |
const | INGEST_RESPONSE = 'es.ingest.response' |
File indexer to use the Elasticsearch ingest pipeline to index and retrieve data from an file (aka. attachment) and make the file content searchable outside of a normal wiki content (i.e. the indexed data is only stored in Elasticsearch).
GNU GPL v2+
SMW\Elastic\Indexer\FileIndexer::__construct | ( | Store | $store, |
EntityCache | $entityCache, | ||
FileHandler | $fileHandler, | ||
FileAttachment | $fileAttachment | ||
) |
Indexer | $indexer | |
EntityCache | $entityCache | |
FileHandler | $fileHandler | |
FileAttachment | $fileAttachment |
SMW\Elastic\Indexer\FileIndexer::findFile | ( | Title | $title | ) |
Title | $title |
SMW\Elastic\Indexer\FileIndexer::getIndexName | ( | $type | ) |
string | $type |
SMW\Elastic\Indexer\FileIndexer::index | ( | DIWikiPage | $dataItem, |
File | $file = null |
||
) |
The ES ingest pipeline only does create (not update) index content which means any other content is deleted after the ingest process has finished therefore:
DIWikiPage | $dataItem | |
File | null | $file |
SMW\Elastic\Indexer\FileIndexer::noSha1Check | ( | ) |
SMW\Elastic\Indexer\FileIndexer::setOrigin | ( | $origin | ) |
string | $origin |
SMW\Elastic\Indexer\FileIndexer::setVersions | ( | array | $versions | ) |
[] | $versions |