Class LuceneFormSearchFactory


  • public class LuceneFormSearchFactory
    extends Object
    Factory for the search on Directory
    • Constructor Detail

      • LuceneFormSearchFactory

        public LuceneFormSearchFactory()
    • Method Detail

      • getAnalyzer

        public org.apache.lucene.analysis.Analyzer getAnalyzer()
        Return the Analyzer to use for the search
        Returns:
        the Analyzer to use for the search
      • 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
        Returns:
        the Directory to use for the search
        Throws:
        IOException - - if the path string cannot be converted to a Path