Class LuceneAppointmentIndexFactory

java.lang.Object
fr.paris.lutece.plugins.appointment.modules.management.service.indexer.LuceneAppointmentIndexFactory

@ApplicationScoped public class LuceneAppointmentIndexFactory extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.store.Directory
    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.
    org.apache.lucene.index.IndexWriter
    getIndexWriter(Boolean bCreateIndex)
    Create the IndexWriter with its configuration

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LuceneAppointmentIndexFactory

      public LuceneAppointmentIndexFactory()
  • Method Details

    • 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 IOException
      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