Class LuceneAppointmentIndexFactory
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.management.service.indexer.LuceneAppointmentIndexFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.store.DirectoryReturn the Directory to use for the search, created when it does not exist yet: a fresh site has no index directory, and the core no longer resolves a webapp path that does not exist.org.apache.lucene.index.IndexWritergetIndexWriter(Boolean bCreateIndex) Create the IndexWriter with its configuration
-
Constructor Details
-
LuceneAppointmentIndexFactory
public LuceneAppointmentIndexFactory()
-
-
Method Details
-
getIndexWriter
Create the IndexWriter with its configuration- Parameters:
bCreateIndex- The boolean which tell if the index must be created- Returns:
- the created IndexWriter
- Throws:
IOException- - if there is a low level IO error
-
getDirectory
Return the Directory to use for the search, created when it does not exist yet: a fresh site has no index directory, and the core no longer resolves a webapp path that does not exist.- Returns:
- the Directory to use for the search
- Throws:
IOException- - if the directory cannot be created or opened
-