org.apache.lucene.ant
public class IndexTask extends org.apache.tools.ant.Task
Modifier and Type | Class and Description |
---|---|
static class |
IndexTask.AnalyzerType |
static class |
IndexTask.HandlerConfig |
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
rcs
resources
|
Constructor and Description |
---|
IndexTask()
Creates new instance
|
Modifier and Type | Method and Description |
---|---|
void |
add(org.apache.tools.ant.types.ResourceCollection res)
Add a collection of files to copy.
|
void |
addConfig(IndexTask.HandlerConfig config)
Sets custom properties for a configurable document handler.
|
void |
addFileset(org.apache.tools.ant.types.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(java.lang.String classname) |
void |
setDocumentHandler(java.lang.String classname)
Sets the documentHandler attribute of the IndexTask object
|
void |
setIndex(java.io.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.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setIndex(java.io.File indexDir)
public void setMergeFactor(int mergeFactor)
mergeFactor
- The new mergeFactor valuepublic void setOverwrite(boolean overwrite)
overwrite
- The new overwrite valuepublic void setUseCompoundIndex(boolean useCompoundIndex)
public void setDocumentHandler(java.lang.String classname)
classname
- The new documentHandler valuepublic void setAnalyzer(IndexTask.AnalyzerType type)
public void setAnalyzerClassName(java.lang.String classname)
public void addFileset(org.apache.tools.ant.types.FileSet set)
set
- FileSet to be addedpublic void add(org.apache.tools.ant.types.ResourceCollection res)
res
- a resource collection to copy.public void addConfig(IndexTask.HandlerConfig config) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- If an error occurs indexing the
filesetCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.