|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.conquiris.lucene.search.Hit
public final class Hit
Object representing a search hit. Public methods never return null.
| Method Summary | |
|---|---|
FieldValues<InputSupplier<ByteArrayInputStream>> |
binary(String name)
Returns the values of the binary fields with the given name. |
FieldValues<Boolean> |
booleanValues(String name)
Returns the boolean values of the numeric fields with the given name. |
FieldValues<ByteString> |
byteString(String name)
Returns the values of the binary fields with the given name. |
FieldValues<Double> |
doubleValues(String name)
Returns the double values of the numeric fields with the given name. |
FieldValues<Float> |
floatValues(String name)
Returns the float values of the numeric fields with the given name. |
Document |
get()
Returns the document. |
int |
getDocId()
Returns the document id. |
Multimap<String,String> |
getFragments()
Returns the highlight fragments. |
float |
getScore()
Returns the score. |
FieldValues<Instant> |
instant(String name)
Returns the instant values of the numeric fields with the given name. |
FieldValues<Integer> |
integerValues(String name)
Returns the integer values of the numeric fields with the given name. |
FieldValues<InputSupplier<ByteArrayInputStream>> |
item(BinarySchemaItem item)
Returns the values of the fields corresponding to the given schema item. |
FieldValues<Boolean> |
item(BooleanSchemaItem item)
Returns the values of the fields corresponding to the given schema item. |
FieldValues<ByteString> |
item(ByteStringSchemaItem item)
Returns the values of the fields corresponding to the given schema item. |
FieldValues<Double> |
item(DoubleSchemaItem item)
Returns the values of the fields corresponding to the given schema item. |
FieldValues<Float> |
item(FloatSchemaItem item)
Returns the values of the fields corresponding to the given schema item. |
FieldValues<Instant> |
item(InstantSchemaItem item)
Returns the values of the fields corresponding to the given schema item. |
FieldValues<Integer> |
item(IntegerSchemaItem item)
Returns the values of the fields corresponding to the given schema item. |
FieldValues<Long> |
item(LongSchemaItem item)
Returns the values of the fields corresponding to the given schema item. |
FieldValues<String> |
item(TextSchemaItem item)
Returns the values of the fields corresponding to the given schema item. |
FieldValues<UUID> |
item(UUIDSchemaItem item)
Returns the values of the fields corresponding to the given schema item. |
FieldValues<Long> |
longValues(String name)
Returns the long values of the numeric fields with the given name. |
static Hit |
of(int docId,
float score,
Document document,
Multimap<String,String> fragments)
Creates a new hit. |
FieldValues<String> |
strings(String name)
Returns the string values of the fields with the given name. |
FieldValues<UUID> |
uuid(String name)
Returns the values of the UUID fields with the given name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Hit of(int docId,
float score,
Document document,
@Nullable
Multimap<String,String> fragments)
docId - Document id.score - Score.document - Document. Use only documents loaded with an IndexReader or IndexSearcher.fragments - Highlight fragments.public int getDocId()
public float getScore()
public Document get()
get in interface Supplier<Document>public Multimap<String,String> getFragments()
public FieldValues<Integer> integerValues(String name)
public FieldValues<Long> longValues(String name)
public FieldValues<Float> floatValues(String name)
public FieldValues<Double> doubleValues(String name)
public FieldValues<Boolean> booleanValues(String name)
public FieldValues<InputSupplier<ByteArrayInputStream>> binary(String name)
public FieldValues<ByteString> byteString(String name)
public FieldValues<UUID> uuid(String name)
public FieldValues<Instant> instant(String name)
public FieldValues<String> strings(String name)
public FieldValues<String> item(TextSchemaItem item)
public FieldValues<Integer> item(IntegerSchemaItem item)
public FieldValues<Long> item(LongSchemaItem item)
public FieldValues<Float> item(FloatSchemaItem item)
public FieldValues<Double> item(DoubleSchemaItem item)
public FieldValues<Boolean> item(BooleanSchemaItem item)
public FieldValues<InputSupplier<ByteArrayInputStream>> item(BinarySchemaItem item)
public FieldValues<ByteString> item(ByteStringSchemaItem item)
public FieldValues<UUID> item(UUIDSchemaItem item)
public FieldValues<Instant> item(InstantSchemaItem item)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||