public final class Hits extends Object
Modifier and Type | Method and Description |
---|---|
Document |
doc(int n)
Returns the stored fields of the nth document in this set.
|
int |
id(int n)
Returns the id for the nth document in this set.
|
int |
length()
Returns the total number of hits available in this set.
|
float |
score(int n)
Returns the score for the nth document in this set.
|
public final int length()
public final Document doc(int n) throws IOException
Documents are cached, so that repeated requests for the same element may return the same Document object.
IOException
public final float score(int n) throws IOException
IOException
public final int id(int n) throws IOException
IOException
Copyright © 2024 GATE. All rights reserved.