Class LuceneConfiguration
java.lang.Object
org.apache.camel.component.lucene.LuceneConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.analysis.AnalyzergetHost()intvoidvoidsetAnalyzer(org.apache.lucene.analysis.Analyzer analyzer) An Analyzer builds TokenStreams, which analyze text.voidThe URL to the lucene servervoidsetIndexDir(File indexDir) A file system directory in which index files are created upon analysis of the document by the specified analyzervoidsetMaxHits(int maxHits) An integer value that limits the result set of the search operationvoidsetOperation(LuceneOperation operation) Operation to do such as insert or query.voidAn optional directory containing files to be used to be analyzed and added to the index at producer startup.
-
Constructor Details
-
LuceneConfiguration
public LuceneConfiguration() -
LuceneConfiguration
-
-
Method Details
-
parseURI
public void parseURI(URI uri, Map<String, Object> parameters, LuceneComponent component) throws Exception- Throws:
Exception
-
getHost
-
setHost
The URL to the lucene server -
getOperation
-
setOperation
Operation to do such as insert or query. -
getSrcDir
-
setSrcDir
An optional directory containing files to be used to be analyzed and added to the index at producer startup. -
getIndexDir
-
setIndexDir
A file system directory in which index files are created upon analysis of the document by the specified analyzer -
getAnalyzer
public org.apache.lucene.analysis.Analyzer getAnalyzer() -
setAnalyzer
public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer) An Analyzer builds TokenStreams, which analyze text. It thus represents a policy for extracting index terms from text. The value for analyzer can be any class that extends the abstract class org.apache.lucene.analysis.Analyzer. Lucene also offers a rich set of analyzers out of the box -
getMaxHits
public int getMaxHits() -
setMaxHits
public void setMaxHits(int maxHits) An integer value that limits the result set of the search operation
-