Public Member Functions | |
synchronized void | delete () |
IndexEnvironment () | |
void | setDocumentRoot (String documentRoot) throws java.lang.Exception |
void | setAnchorTextPath (String anchorTextRoot) throws java.lang.Exception |
void | setOffsetMetadataPath (String offsetMetadataRoot) throws java.lang.Exception |
void | setOffsetAnnotationsPath (String offsetAnnotationsRoot) throws java.lang.Exception |
void | addFileClass (String name, String iterator, String parser, String tokenizer, String startDocTag, String endDocTag, String endMetadataTag, String[] include, String[] exclude, String[] index, String[] metadata, Map conflations) throws java.lang.Exception |
Specification | getFileClassSpec (String name) throws java.lang.Exception |
void | addFileClass (Specification spec) throws java.lang.Exception |
void | deleteDocument (int documentID) throws java.lang.Exception |
void | setIndexedFields (String[] fieldNames) throws java.lang.Exception |
void | setNumericField (String fieldName, boolean isNumeric, String parserName) throws java.lang.Exception |
void | setNumericField (String fieldName, boolean isNumeric) throws java.lang.Exception |
void | setOrdinalField (String fieldName, boolean isOrdinal) throws java.lang.Exception |
void | setParentalField (String fieldName, boolean isParental) throws java.lang.Exception |
void | setMetadataIndexedFields (String[] forward, String[] backward) throws java.lang.Exception |
void | setStopwords (String[] stopwords) throws java.lang.Exception |
void | setStemmer (String stemmer) throws java.lang.Exception |
void | setMemory (long memory) throws java.lang.Exception |
void | setNormalization (boolean normalize) throws java.lang.Exception |
void | setStoreDocs (boolean flag) throws java.lang.Exception |
void | create (String repositoryPath, IndexStatus callback) throws java.lang.Exception |
void | create (String repositoryPath) throws java.lang.Exception |
void | open (String repositoryPath, IndexStatus callback) throws java.lang.Exception |
void | open (String repositoryPath) throws java.lang.Exception |
void | close () throws java.lang.Exception |
void | addFile (String fileName) throws java.lang.Exception |
void | addFile (String fileName, String fileClass) throws java.lang.Exception |
int | addString (String fileName, String fileClass, Map metadata) throws java.lang.Exception |
int | addString (String documentString, String fileClass, Map metadata, TagExtent[] tags) throws java.lang.Exception |
int | addParsedDocument (ParsedDocument document) throws java.lang.Exception |
int | documentsIndexed () throws java.lang.Exception |
int | documentsSeen () throws java.lang.Exception |
Protected Member Functions | |
IndexEnvironment (long cPtr, boolean cMemoryOwn) | |
void | finalize () |
Static Protected Member Functions | |
long | getCPtr (IndexEnvironment obj) |
Protected Attributes | |
boolean | swigCMemOwn |
Private Attributes | |
long | swigCPtr |
|
|
|
|
|
add a file of the specified file class to the index and repository
|
|
Add the text in a file to the index and repository. The fileClass of this file will be chosen based on the file extension. If the file has no extension, it will be skipped. Information about indexing progress will be passed to the callback.
|
|
Add a file class.
|
|
Add parsing information for a file class. Data for these parameters is passed into the FileClassEnvironmentFactory
|
|
add an already parsed document to the index and repository
|
|
Adds a string to the index and repository. The documentString is assumed to contain the kind of text that would be found in a file of type fileClass.
|
|
Adds a string to the index and repository. The documentString is assumed to contain the kind of text that would be found in a file of type fileClass.
|
|
close the index and repository
|
|
create a new index and repository
|
|
create a new index and repository
|
|
|
|
Delete an existing document.
|
|
Returns the number of documents indexed so far in this session.
|
|
Returns the number of documents considered for indexing, which is the sum of the documents indexed and the documents skipped.
|
|
|
|
|
|
Get a named file class.
|
|
open an existing index and repository
|
|
open an existing index and repository
|
|
Set anchor text root path.
|
|
Set the document root path
|
|
Set names of fields to be indexed. This call indicates to the index that information about these fields should be stored in the index so they can be used in queries. This does not affect whether or not the text in a particular field is stored in an index.
|
|
set the amount of memory to use for internal structures
|
|
Set names of metadata fields to be indexed for fast retrieval. The forward fields are indexed in a B-Tree mapping (documentID, metadataValue). If a field is not forward indexed, the documentMetadata calls will still work, but they will be slower (the document has to be retrieved, decompressed and parsed to get the metadata back, instead of just a B-Tree lookup). The backward indexed fields store a mapping of (metadataValue, documentID). If a field is not backward indexed, the documentIDsFromMetadata and documentFromMetadata calls will not work.
|
|
set normalization of case and some punctuation; default is true (normalize during indexing and at query time)
|
|
Set the numeric property of a field.
|
|
Set the numeric property of a field.
|
|
Set offset annotations root path.
|
|
Set offset metadata root path.
|
|
Set the ordinal property of a field. If child, parent, or ancestor field queries are slow, you may want to be certain to index the specified fields explicitly as an ordinal. This speeds things up at the cost of a minimal amount of disk space.
|
|
Set the parental property of a field. If child, parent, or ancestor field queries are slow, you may want to be certain to index the specified fields explicitly as an ordinal. This speeds things up at the cost of a minimal amount of disk space.
|
|
set the stemmer to use
|
|
set the list of stopwords
|
|
set the storeDocs flag
|
|
|
|
|