Skip to content

Commit ebe5cb3

Browse files
Added todo comment re RedisJSON#201. (RedisJSON#209)
1 parent a6af019 commit ebe5cb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/index.rs

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ fn create_document(key: &str, schema: &Schema, doc: &RedisJSON) -> Result<Docume
109109

110110
for (field_name, path) in fields {
111111
let results = doc.get_values(path)?;
112+
// TODO: support multiple results instead of calling .first(), see #201
112113
if let Some(value) = results.first() {
113114
match value {
114115
Value::String(v) => rsdoc.add_field(field_name, &v, FieldType::FULLTEXT),

0 commit comments

Comments
 (0)