Methods | Description |
---|---|
void close() | IndexReader is not shut, if IndexSearcher was developed with IndexSearcher |
Document doc(int docID) | Gives back the put away fields of report i. |
int docFreq(Term term) | Gives back the put away fields of report i. |
IndexReader getIndexReader() | To return the IndexReader. |
IndexReader[] getSubReaders() | Gives back the subReaders utilized by this searcher. |
int maxDoc() | Returns one more prominent than the biggest conceivable record number. |
Methods | Description |
---|---|
void addDocument(Document doc) | To add the document |
String field() | Gives back the field of this term, an interned string. |
String text() | Gives back the text. |
Term createTerm(String text) | Enhanced development of new Terms by reusing same field as this Term - maintains a strategic distance from field.intern() overhead. |
Methods | Description |
---|---|
Object clone() | Gives back a clone of this query. |
Weight createWeight(Searcher searcher) | Develops a proper Weight usage for this query. |
float getBoost() | Gets the support for this statement. |
Query rewrite(IndexReader reader) | called to re-compose inquiries into primitive questions. |
Methods | Description |
---|---|
void addDocument(Document doc) | To add the document. |
void extractTerms(Set terms) | includes all terms happening in this inquiry to the terms set. |
Term getTerm() | Gives back the term of this query. |
String toString(String field) | Prints a client coherent variant of this query. |
int hashCode() | Gives back a hash code esteem for this protest. |
Methods | Description |
---|---|
getMaxScore() | Gives back the greatest score esteem experienced. |
void setMaxScore(float maxScore) | Sets the greatest score esteem experienced. |
static TopDocs merge(Sort sort, int topN, TopDocs[] shardHits) | Gives back another TopDocs, containing topN comes about over the gave TopDocs, sorting by the predetermined Sort. |
java.lang.Object
.