Class LuceneFormSearchFactory
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.service.search.LuceneFormSearchFactory
-
public class LuceneFormSearchFactory extends java.lang.ObjectFactory for the search on Directory
-
-
Constructor Summary
Constructors Constructor Description LuceneFormSearchFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.analysis.AnalyzergetAnalyzer()Return the Analyzer to use for the searchorg.apache.lucene.store.DirectorygetDirectory()Return the Directory to use for the searchorg.apache.lucene.index.IndexWritergetIndexWriter(java.lang.Boolean bCreateIndex)Create the IndexWriter with its configuration
-
-
-
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(java.lang.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:
java.io.IOException- - if there is a low level IO error
-
getDirectory
public org.apache.lucene.store.Directory getDirectory() throws java.io.IOExceptionReturn the Directory to use for the search- Returns:
- the Directory to use for the search
- Throws:
java.io.IOException- - if the path string cannot be converted to a Path
-
-