Class LuceneAppointmentIndexFactory
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.modules.management.service.indexer.LuceneAppointmentIndexFactory
-
public class LuceneAppointmentIndexFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description LuceneAppointmentIndexFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.store.DirectorygetDirectory()Return the Directory to use for the searchorg.apache.lucene.index.IndexWritergetIndexWriter(Boolean bCreateIndex)Create the IndexWriter with its configuration
-
-
-
Method Detail
-
getIndexWriter
public org.apache.lucene.index.IndexWriter getIndexWriter(Boolean bCreateIndex)
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
public org.apache.lucene.store.Directory getDirectory() throws IOExceptionReturn the Directory to use for the search- Returns:
- the Directory to use for the search
- Throws:
IOException- - if the path string cannot be converted to a Path
-
-