org.apache.lucene.ant
public class IndexTask extends Task
Nested Class Summary | |
---|---|
static class | IndexTask.AnalyzerType |
static class | IndexTask.HandlerConfig |
Constructor Summary | |
---|---|
IndexTask()
Creates new instance |
Method Summary | |
---|---|
void | addConfig(IndexTask.HandlerConfig config)
Sets custom properties for a configurable document handler. |
void | addFileset(FileSet set)
Adds a set of files (nested fileset attribute).
|
void | execute()
Begins the indexing
|
void | setAnalyzer(IndexTask.AnalyzerType type)
Sets the analyzer based on the builtin Lucene analyzer types.
|
void | setAnalyzerClassName(String classname) |
void | setDocumentHandler(String classname)
Sets the documentHandler attribute of the IndexTask object
|
void | setIndex(File indexDir)
Specifies the directory where the index will be stored |
void | setMergeFactor(int mergeFactor)
Sets the mergeFactor attribute of the IndexTask object
|
void | setOverwrite(boolean overwrite)
Sets the overwrite attribute of the IndexTask object
|
void | setUseCompoundIndex(boolean useCompoundIndex)
If creating a new index and this is set to true, the
index will be created in compound format. |
Parameters: set FileSet to be added
Throws: BuildException If an error occurs indexing the fileset
UNKNOWN: Enforce analyzer and analyzerClassName to be mutually exclusive
Parameters: classname The new documentHandler value
Parameters: mergeFactor The new mergeFactor value
Parameters: overwrite The new overwrite value