public class FileSystemProvider extends Object implements DocumentProvider
| Constructor and Description |
|---|
FileSystemProvider(IndexConfig config,
List<String> extensions,
long timeout,
String jspExtension,
File dataDir,
Collection<? extends File> protectedFolders) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<DocumentProducer> |
getDocumentProducers(Site site,
Application application)
Returns some
DocumentProducers to take into account when building the Site's global lucene index. |
Iterable<DocumentProducer> |
indexDirectory(int documentQueueSize)
Performs the actual indexing.
|
public FileSystemProvider(IndexConfig config, List<String> extensions, long timeout, String jspExtension, File dataDir, Collection<? extends File> protectedFolders)
public Iterable<DocumentProducer> getDocumentProducers(Site site, Application application) throws InterruptedException, TimeoutException
DocumentProviderDocumentProducers to take into account when building the Site's global lucene index.getDocumentProducers in interface DocumentProvidersite - the current Siteapplication - the current ApplicationDocumentProducersInterruptedExceptionTimeoutExceptionpublic Iterable<DocumentProducer> indexDirectory(int documentQueueSize) throws InterruptedException, TimeoutException
documentQueueSize - the initial queue size for each DocumentProducerIterable of DocumentProducersInterruptedException - if such an exception occurs while adding a DocumentEvent to the indexerTimeoutException - if such an exception occurs while adding a DocumentEvent to the indexerCopyright © 2011–2023 aiticon GmbH. All rights reserved.