|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectTask
org.apache.lucene.ant.IndexTask
public class IndexTask
Ant task to index files with Lucene
| Nested Class Summary | |
|---|---|
static class |
IndexTask.AnalyzerType
|
static class |
IndexTask.HandlerConfig
|
| Field Summary | |
|---|---|
protected Vector<ResourceCollection> |
rcs
resources |
| Constructor Summary | |
|---|---|
IndexTask()
Creates new instance |
|
| Method Summary | |
|---|---|
void |
add(ResourceCollection res)
Add a collection of files to copy. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Vector<ResourceCollection> rcs
| Constructor Detail |
|---|
public IndexTask()
| Method Detail |
|---|
public void setIndex(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(String classname)
classname - The new documentHandler valuepublic void setAnalyzer(IndexTask.AnalyzerType type)
public void setAnalyzerClassName(String classname)
public void addFileset(FileSet set)
set - FileSet to be addedpublic void add(ResourceCollection res)
res - a resource collection to copy.
public void addConfig(IndexTask.HandlerConfig config)
throws BuildException
BuildException
public void execute()
throws BuildException
BuildException - If an error occurs indexing the
fileset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||