|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use CorruptIndexException | |
---|---|
org.apache.lucene.index | Code to maintain and access indices. |
org.apache.lucene.search | Code to search indices. |
Uses of CorruptIndexException in org.apache.lucene.index |
---|
Methods in org.apache.lucene.index that throw CorruptIndexException | |
---|---|
void |
IndexModifier.addDocument(Document doc)
Adds a document to this index. |
void |
IndexWriter.addDocument(Document doc)
Adds a document to this index. |
void |
IndexModifier.addDocument(Document doc,
Analyzer docAnalyzer)
Adds a document to this index, using the provided analyzer instead of the one specific in the constructor. |
void |
IndexWriter.addDocument(Document doc,
Analyzer analyzer)
Adds a document to this index, using the provided analyzer instead of the value of IndexWriter.getAnalyzer() . |
void |
IndexWriter.addIndexes(Directory[] dirs)
Merges all segments from an array of indexes into this index. |
void |
IndexWriter.addIndexes(IndexReader[] readers)
Merges the provided indexes into this index. |
void |
IndexWriter.addIndexesNoOptimize(Directory[] dirs)
Merges all segments from an array of indexes into this index. |
void |
IndexModifier.close()
Close this index, writing all pending changes to disk. |
void |
IndexWriter.close()
Flushes all changes to an index and closes all associated files. |
protected void |
IndexModifier.createIndexReader()
Close the IndexWriter and open an IndexReader. |
protected void |
IndexModifier.createIndexWriter()
Close the IndexReader and open an IndexWriter. |
void |
IndexModifier.deleteDocument(int docNum)
Deletes the document numbered docNum . |
void |
IndexReader.deleteDocument(int docNum)
Deletes the document numbered docNum . |
int |
IndexModifier.deleteDocuments(Term term)
Deletes all documents containing term . |
int |
IndexReader.deleteDocuments(Term term)
Deletes all documents that have a given term indexed. |
void |
IndexWriter.deleteDocuments(Term term)
Deletes the document(s) containing term . |
void |
IndexWriter.deleteDocuments(Term[] terms)
Deletes the document(s) containing any of the terms. |
Document |
IndexReader.document(int n)
Returns the stored fields of the n th
Document in this index. |
Document |
ParallelReader.document(int n,
FieldSelector fieldSelector)
|
Document |
MultiReader.document(int n,
FieldSelector fieldSelector)
|
Document |
FilterIndexReader.document(int n,
FieldSelector fieldSelector)
|
abstract Document |
IndexReader.document(int n,
FieldSelector fieldSelector)
Get the Document at the n th position. |
protected void |
ParallelReader.doDelete(int n)
|
protected void |
MultiReader.doDelete(int n)
|
protected void |
FilterIndexReader.doDelete(int n)
|
protected abstract void |
IndexReader.doDelete(int docNum)
Implements deletion of the document numbered docNum . |
protected void |
ParallelReader.doSetNorm(int n,
java.lang.String field,
byte value)
|
protected void |
MultiReader.doSetNorm(int n,
java.lang.String field,
byte value)
|
protected void |
FilterIndexReader.doSetNorm(int d,
java.lang.String f,
byte b)
|
protected abstract void |
IndexReader.doSetNorm(int doc,
java.lang.String field,
byte value)
Implements setNorm in subclass. |
protected void |
ParallelReader.doUndeleteAll()
|
protected void |
MultiReader.doUndeleteAll()
|
protected void |
FilterIndexReader.doUndeleteAll()
|
protected abstract void |
IndexReader.doUndeleteAll()
Implements actual undeleteAll() in subclass. |
void |
IndexModifier.flush()
Make sure all changes are written to disk. |
void |
IndexWriter.flush()
Flush all in-memory buffered updates (adds and deletes) to the Directory. |
protected void |
IndexWriter.flushRamSegments(boolean triggerMerge)
Expert: Flushes all RAM-resident segments (buffered documents), then may merge segments if triggerMerge==true. |
static long |
IndexReader.getCurrentVersion(Directory directory)
Reads version number from segments files. |
static long |
IndexReader.getCurrentVersion(java.io.File directory)
Reads version number from segments files. |
static long |
IndexReader.getCurrentVersion(java.lang.String directory)
Reads version number from segments files. |
java.io.PrintStream |
IndexModifier.getInfoStream()
|
int |
IndexModifier.getMaxBufferedDocs()
|
int |
IndexModifier.getMaxFieldLength()
|
int |
IndexModifier.getMergeFactor()
|
boolean |
IndexModifier.getUseCompoundFile()
|
protected void |
IndexModifier.init(Directory directory,
Analyzer analyzer,
boolean create)
Initialize an IndexWriter. |
boolean |
FilterIndexReader.isCurrent()
|
boolean |
IndexReader.isCurrent()
Check whether this IndexReader is still using the current (i.e., most recently committed) version of the index. |
static long |
IndexReader.lastModified(Directory directory2)
Returns the time the index in the named directory was last modified. |
static long |
IndexReader.lastModified(java.io.File fileDirectory)
Returns the time the index in the named directory was last modified. |
static long |
IndexReader.lastModified(java.lang.String directory)
Returns the time the index in the named directory was last modified. |
protected void |
IndexWriter.maybeFlushRamSegments()
Used internally to trigger a flush if the number of buffered added documents or buffered deleted terms are large enough. |
static IndexReader |
IndexReader.open(Directory directory)
Returns an IndexReader reading the index in the given Directory. |
static IndexReader |
IndexReader.open(Directory directory,
IndexDeletionPolicy deletionPolicy)
Expert: returns an IndexReader reading the index in the given Directory, with a custom IndexDeletionPolicy . |
static IndexReader |
IndexReader.open(java.io.File path)
Returns an IndexReader reading the index in an FSDirectory in the named path. |
static IndexReader |
IndexReader.open(java.lang.String path)
Returns an IndexReader reading the index in an FSDirectory in the named path. |
void |
IndexModifier.optimize()
Merges all segments together into a single segment, optimizing an index for search. |
void |
IndexWriter.optimize()
Merges all segments together into a single segment, optimizing an index for search. |
void |
IndexReader.setNorm(int doc,
java.lang.String field,
byte value)
Expert: Resets the normalization factor for the named field of the named document. |
void |
IndexReader.setNorm(int doc,
java.lang.String field,
float value)
Expert: Resets the normalization factor for the named field of the named document. |
void |
IndexReader.undeleteAll()
Undeletes all documents currently marked as deleted in this index. |
void |
IndexWriter.updateDocument(Term term,
Document doc)
Updates a document by first deleting the document(s) containing term and then adding the new
document. |
void |
IndexWriter.updateDocument(Term term,
Document doc,
Analyzer analyzer)
Updates a document by first deleting the document(s) containing term and then adding the new
document. |
Constructors in org.apache.lucene.index that throw CorruptIndexException | |
---|---|
IndexModifier(Directory directory,
Analyzer analyzer,
boolean create)
Open an index with write access. |
|
IndexModifier(java.io.File file,
Analyzer analyzer,
boolean create)
Open an index with write access. |
|
IndexModifier(java.lang.String dirName,
Analyzer analyzer,
boolean create)
Open an index with write access. |
|
IndexWriter(Directory d,
Analyzer a)
Constructs an IndexWriter for the index in d , first creating it if it does not
already exist. |
|
IndexWriter(Directory d,
Analyzer a,
boolean create)
Constructs an IndexWriter for the index in d . |
|
IndexWriter(Directory d,
boolean autoCommit,
Analyzer a)
Constructs an IndexWriter for the index in d , first creating it if it does not
already exist. |
|
IndexWriter(Directory d,
boolean autoCommit,
Analyzer a,
boolean create)
Constructs an IndexWriter for the index in d . |
|
IndexWriter(Directory d,
boolean autoCommit,
Analyzer a,
boolean create,
IndexDeletionPolicy deletionPolicy)
Expert: constructs an IndexWriter with a custom IndexDeletionPolicy , for the index in d . |
|
IndexWriter(Directory d,
boolean autoCommit,
Analyzer a,
IndexDeletionPolicy deletionPolicy)
Expert: constructs an IndexWriter with a custom IndexDeletionPolicy , for the index in d ,
first creating it if it does not already exist. |
|
IndexWriter(java.io.File path,
Analyzer a)
Constructs an IndexWriter for the index in path , first creating it if it does not
already exist. |
|
IndexWriter(java.io.File path,
Analyzer a,
boolean create)
Constructs an IndexWriter for the index in path . |
|
IndexWriter(java.lang.String path,
Analyzer a)
Constructs an IndexWriter for the index in path , first creating it if it does not
already exist. |
|
IndexWriter(java.lang.String path,
Analyzer a,
boolean create)
Constructs an IndexWriter for the index in path . |
Uses of CorruptIndexException in org.apache.lucene.search |
---|
Methods in org.apache.lucene.search that throw CorruptIndexException | |
---|---|
Document |
RemoteSearchable.doc(int i)
|
Document |
MultiSearcher.doc(int n)
|
Document |
IndexSearcher.doc(int i)
|
Document |
Hits.doc(int n)
Returns the stored fields of the nth document in this set. |
Document |
Searchable.doc(int i)
Expert: Returns the stored fields of document i . |
abstract Document |
Searcher.doc(int i)
|
Document |
RemoteSearchable.doc(int i,
FieldSelector fieldSelector)
|
Document |
MultiSearcher.doc(int n,
FieldSelector fieldSelector)
|
Document |
IndexSearcher.doc(int i,
FieldSelector fieldSelector)
|
Document |
Searchable.doc(int n,
FieldSelector fieldSelector)
Get the Document at the n th position. |
java.lang.String |
Hit.get(java.lang.String name)
Returns the string value of the field with the given name if any exist in this document, or null. |
float |
Hit.getBoost()
Returns the boost factor for this hit on any field of the underlying document. |
Document |
Hit.getDocument()
Returns document for this hit. |
Constructors in org.apache.lucene.search that throw CorruptIndexException | |
---|---|
IndexSearcher(Directory directory)
Creates a searcher searching the index in the provided directory. |
|
IndexSearcher(java.lang.String path)
Creates a searcher searching the index in the named directory. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |