public class IndexInfo
extends Object
Modifier and Type | Field and Description |
---|---|
String |
accentMapPath
Path to a mapping from accented characters to their corresponding
chars with teh diacritics removed.
|
int[] |
chunkAtt
Text chunk attribute array.
|
static int |
chunkOvlp
Index into Chunk Attribute Array for the chunk size attribute.
|
static int |
chunkSize
Index into Chunk Attribute Array for the chunk size attribute.
|
boolean |
cloneData
True to make a clone of the data in index/dataClone.
|
boolean |
createSpellcheckDict
Whether to create a spellcheck dictionary for this index
|
static int |
defaultChunkOvlp
Constant defining the default overlap (in words) of two adjacent text
chunks.
|
static int |
defaultChunkSize
Constant defining the default size (in words) of a text chunk.
|
static String |
defaultStopWords
Constant defining the default list of stop words.
|
String |
docSelectorPath
Path to stylesheet used to determine which documents to index
|
String |
indexName
Name of the current index being processed (as specified in the index
configuration file.)
|
String |
indexPath
Name of the path to the current index's Lucene database.
|
static int |
minChunkSize
Constant defining the minimum size (in words) of a text chunk.
|
AttribList |
passThroughAttribs
Pass-through attributes in the form of name/value pairs
|
String |
pluralMapPath
Path to a mapping from plural words to their corresponding singular
forms that the textIndexer should fold together.
|
boolean |
rotate
Whether index rotation is enabled
|
boolean |
scanAllDirs
True to scan all dirs, false for pruned (e.g. stop at first data).
|
String |
sourcePath
Path to the source text for the current index.
|
String |
stopWords
Set of stop words to remove.
|
boolean |
stripWhitespace
Whether to strip whitespace between elements in lazy tree files.
|
ArrayList<String> |
subDirs
Name of a sub-directory to index, or null to index everything
|
String |
validationPath
Path to a set of validation specifications for this index.
|
Constructor and Description |
---|
IndexInfo()
Default constructor.
|
IndexInfo(String indexName,
String indexPath)
Alternate constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getChunkOvlp()
Return the overlap of two adjacent text chunks for the current index.
|
String |
getChunkOvlpStr()
Return the overlap (in words) for two adjacent text text chunks in the
current index as a string.
|
int |
getChunkSize()
Return the size of a text chunk for the current index.
|
String |
getChunkSizeStr()
Return the size of a text chunk (in words) for the current index
as a string.
|
int |
setChunkOvlp(int newChunkOverlap)
Sets the adjacent chunk overlap attribute for the current index.
|
int |
setChunkSize(int newChunkSize)
Sets the text chunk size attribute for the current index.
|
public String indexName
public ArrayList<String> subDirs
public String indexPath
public boolean rotate
public String sourcePath
public boolean scanAllDirs
public boolean cloneData
public String docSelectorPath
public String stopWords
public String pluralMapPath
public String accentMapPath
public String validationPath
public boolean createSpellcheckDict
public boolean stripWhitespace
public int[] chunkAtt
chunkSize
}
and chunkOvlp
constants defined by this class.
public static final int chunkSize
public static final int chunkOvlp
public static final int minChunkSize
chunkSize
and chunkOvlp
.public static final int defaultChunkSize
chunkSize
and chunkOvlp
.public static final int defaultChunkOvlp
chunkSize
and chunkOvlp
.public static final String defaultStopWords
stopWords
public AttribList passThroughAttribs
public IndexInfo()
chunkSize
entry to
defaultChunkSize
,
and the chunkOvlp
entry to
defaultChunkOvlp
.public IndexInfo(String indexName, String indexPath)
public int getChunkSize()
public String getChunkSizeStr()
public int getChunkOvlp()
public String getChunkOvlpStr()
public int setChunkSize(int newChunkSize)
chunkSize
attribute, coercing its value to be greater than or equal to the
minChunkSize
value. setChunkOvlp()
method to ensure that the overlap value is valid for the
chunk size set by this call.
chunkSize
and chunkOvlp
.public int setChunkOvlp(int newChunkOverlap)
chunkOvlp
attribute,
coercing its value to be less than or equal to the half the current chunk
size for the current index.