Class LuceneConfiguration
- java.lang.Object
-
- org.apache.camel.component.lucene.LuceneConfiguration
-
@UriParams public class LuceneConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description LuceneConfiguration()
LuceneConfiguration(URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.analysis.Analyzer
getAnalyzer()
String
getHost()
File
getIndexDir()
int
getMaxHits()
LuceneOperation
getOperation()
File
getSrcDir()
void
parseURI(URI uri, Map<String,Object> parameters, LuceneComponent component)
void
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
An Analyzer builds TokenStreams, which analyze text.void
setHost(String host)
The URL to the lucene servervoid
setIndexDir(File indexDir)
A file system directory in which index files are created upon analysis of the document by the specified analyzervoid
setMaxHits(int maxHits)
An integer value that limits the result set of the search operationvoid
setOperation(LuceneOperation operation)
Operation to do such as insert or query.void
setSrcDir(File srcDir)
An optional directory containing files to be used to be analyzed and added to the index at producer startup.
-
-
-
Constructor Detail
-
LuceneConfiguration
public LuceneConfiguration()
-
LuceneConfiguration
public LuceneConfiguration(URI uri)
-
-
Method Detail
-
parseURI
public void parseURI(URI uri, Map<String,Object> parameters, LuceneComponent component) throws Exception
- Throws:
Exception
-
getHost
public String getHost()
-
setHost
public void setHost(String host)
The URL to the lucene server
-
getOperation
public LuceneOperation getOperation()
-
setOperation
public void setOperation(LuceneOperation operation)
Operation to do such as insert or query.
-
getSrcDir
public File getSrcDir()
-
setSrcDir
public void setSrcDir(File srcDir)
An optional directory containing files to be used to be analyzed and added to the index at producer startup.
-
getIndexDir
public File getIndexDir()
-
setIndexDir
public void setIndexDir(File indexDir)
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
-
-