SystemComponent "Indexing Setups"
C1800188452
Understanding[edit | edit source]
- Custom indexer classes must be provided to
dataspects-indexing-service
atdataspects-indexing-service/lib/indexers/MyIndexer/
Indexing Setups[edit | edit source]
IndexingSetup "Indexing a SemanticMediaWiki instance" | HasResourceSelectionCode | HasResourceEnitizationCode |
---|---|---|
HasIndexingExecutionCode | ||
IndexingSetup "Indexing a file system directory" | HasResourceSelectionCode | HasResourceEnitizationCode |
---|---|---|
Carried out by Role "Search Engineer":
|
someUser@someFileServer:~$ tree
.
├── dataspects-indexer
└── indexer-config.json
indexer-config.json[edit | edit source]1 {
2 "FilenameRegex": ".pdf",
3 "RootFolder": "/home/someUser/documents_to_index/",
4 "IndexerClassName": "MyFileSystemDirectoryIndexer"
5 ...
6 }
|
indexer@indexingServer:~$ tree
.
└── dataspects-indexing-service
└── lib
└── MyIndexerClasses
└── my_fsd_indexer.rb
my_fsd_indexer.rb[edit | edit source]1 class MyFileSystemDirectoryIndexer < Dataspects::Indexer
2 ...
3 def store_to_index(resource)
4
5 end
6 end
|
HasIndexingExecutionCode | ||
ShellCommand[edit | edit source]someUser@someFileServer:~$ \
./dataspects-indexer \
--config indexer-config.json \
--indexer YourIndexerLabel
|