Class Document
java.lang.Object
io.quarkus.redis.datasource.search.Document
Represents a document containing in the response of a
ft.search
command.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Represents a document property / attribute -
Constructor Summary
ConstructorsConstructorDescriptionDocument
(String id, double score, io.vertx.mutiny.redis.client.Response payload, Map<String, Document.Property> properties) -
Method Summary
-
Constructor Details
-
Document
public Document(String id, double score, io.vertx.mutiny.redis.client.Response payload, Map<String, Document.Property> properties)
-
-
Method Details
-
key
- Returns:
- the document key
-
score
public double score()- Returns:
- the score, 0.0 if not requested
-
properties
- Returns:
- the list of properties of the document
-
property
Gets a specific property from the document- Parameters:
name
- the name, must not benull
- Returns:
- the property,
null
if not found
-
payload
public io.vertx.mutiny.redis.client.Response payload()- Returns:
- the payload
-