-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Implement deprecated commands as wrappers over existing commands to enable backward compatibility.
Commands to implement:
FT.ADD - Add document to index
Syntax: FT.ADD {index} {docId} {score} FIELDS {field} {value} [{field} {value}...]
Implementation:
- Get index prefix from DocIndex
- Build key: prefix + docId
- Call HSET {key} {field} {value} ...
- Return "OK"
FT.GET - Retrieve document from index
Syntax: FT.GET {index} {docId}
Implementation:
- Get index prefix from DocIndex
- Build key: prefix + docId
- Call HGETALL {key}
- Return result (or Nil if not found)
FT.MGET - Retrieve multiple documents
Syntax: FT.MGET {index} {docId} [{docId} ...]
Implementation:
- Loop through each docId
- Call FT.GET for each
- Return an array of results
FT.DEL - Delete document from index
Syntax: FT.DEL {index} {docId} [DD]
Implementation:
- Get index prefix from DocIndex
- Build key: prefix + docId
- Call DEL {key} (if DD flag present)
- Return 1 if deleted, 0 otherwise
FT.DROP {index}
Alias to existing FT.DROPINDEX
These commands are deprecated since RediSearch 2.0, but still maintained for backwards compatibility.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request