spring-projects / spring-projects/spring-ai
Add SORTABLE to Redis chat memory timestamp index field
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
RedisChatMemoryRepository frequently executes search queries sorted by timestamp (for conversation history ordering), but the schema currently defines timestamp as NUMERIC without SORTABLE.
SORTABLE indicates that the field can be sorted. This is useful for performing range queries and sorting search results based on numeric values.
Ref: https://redis.io/docs/latest/develop/ai/search-and-query/indexing/field-and-type-options/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating RedisChatMemoryRepository and reading how its index schema defines the timestamp field and how conversation-history searches sort results. Confirm the relevant Redis search behavior from the linked documentation; done means the timestamp schema supports the required numeric sorting and range-query use.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, redis
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100