Package redis.clients.jedis.search
Class Document
java.lang.Object
redis.clients.jedis.search.Document
- All Implemented Interfaces:
Serializable
Document represents a single indexed document or entity in the engine
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate byte[]private doubleprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturn the property value inside a keygetId()byte[]Deprecated.doublegetScore()return the property value inside a keybooleanhasProperty(String key) static DocumentDeprecated.static DocumentDeprecated.setScore(float score) Set the document's scoretoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
id
-
score
private double score -
payload
private byte[] payload -
properties
-
-
Constructor Details
-
Document
-
Document
-
Document
-
Document
-
Document
Deprecated.
-
-
Method Details
-
getProperties
-
load
@Deprecated public static Document load(String id, double score, byte[] payload, List<byte[]> fields) Deprecated. -
load
@Deprecated public static Document load(String id, double score, byte[] payload, List<byte[]> fields, boolean decode) Deprecated. -
set
-
get
return the property value inside a key- Parameters:
key- key of the property- Returns:
- the property value
-
getString
return the property value inside a key- Parameters:
key- key of the property- Returns:
- the property value
-
getScore
public double getScore()- Returns:
- the document's score
-
getPayload
Deprecated. -
setScore
Set the document's score- Parameters:
score- new score to set- Returns:
- the document itself
-
getId
- Returns:
- the document's id
-
hasProperty
-
toString
-