Methods | Description |
---|---|
void addDocument(Document doc) | To add the document. |
void addIndexes(Directory... dirs) | To Add all sections from a variety of files into this index. |
void close() | Confers all progressions to a file and shuts all related documents. |
void commit() | To Commit every single pending change to the record. |
void deleteAll() | To delete the all reocrds from an index. |
void forceMergeDeletes() | Powers converging of all portions that have erased reports. |
Methods | Description |
---|---|
void clearLock(String name) | Endeavor to clear the lock. |
void close() | To close the store. |
abstract void deleteFile(String name) | To delete the already existed file. |
abstract long fileLength(String name | To get the length of the file. |
String getLockID() | To give back a string identifier that interestingly separates this Directory example from other Directory occurrences. |
void sync(Collection names) | Guarantee that any keeps in touch with these records are moved to stable cloud. |
Methods | Description |
---|---|
void close() | Liberates persistent assets utilized by this Analyzer. |
int getOffsetGap(Fieldable field) | Much the same as getPositionIncrementGap(java.lang.String), aside from Token balances. |
protected Object getPreviousTokenStream() | Utilized by Analyzers that actualize reusableTokenStream to recover beforehand spared TokenStreams for re-use by a similar string. |
protected void setPreviousTokenStream(Object obj) | Utilized by Analyzers that actualize reusableTokenStream to spare a TokenStream for later re-use by a similar threadg. |
Methods | Description |
---|---|
void clearLock(String name) | Endeavor to clear the predefined lock. |
String get(String name) | Gives back the string estimation of the field with the given name if any exist in this archive, or invalid. |
void add(Fieldable field) | To add the field. |
byte[][] getBinaryValues(String name) | Gives back a variety of byte exhibits for of the fields that have the name indicated as the parameter of the method. |
Fieldable getFieldable(String name) | Gives back a field with the given name if any exist in this archive, or invalid. |
void setBoost(float boost) | Sets a boost factor for hits on any field of this record. |
void removeFields(String name) | Expels all fields with the given name from the report. |