Skip to content

Support Metadata of RedisAutoConfiguration for indexing#6320

Open
yaner-here wants to merge 1 commit into
spring-projects:mainfrom
yaner-here:GH-6308
Open

Support Metadata of RedisAutoConfiguration for indexing#6320
yaner-here wants to merge 1 commit into
spring-projects:mainfrom
yaner-here:GH-6308

Conversation

@yaner-here

@yaner-here yaner-here commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Close #6308

This PR allows developers to configure metadata for RedisAutoConfiguration like this:

spring:
  ai:
    vectorstore:
      redis:
        initialize-schema: true
        metadata-fields:
          - name: country
            type: tag
          - name: year
            type: numeric
          - name: description
            type: text

RedisVectorStore only supports three types: TAG, NUMERIC and TEXT. This PR only supports them as well, without out GEO and VECTOR defined in edis.clients.jedis.search.Schema.FieldType.

* <li>Flexible metadata field types (TEXT, TAG, NUMERIC) for advanced filtering</li>

https://github.com/redis/jedis/blob/33fc911a2aa01e93fa4bb2e0caae72e85a26ec4e/src/main/java/redis/clients/jedis/search/Schema.java#L16-L24

Signed-off-by: Yaner <yaner@yaner-here.top>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RedisAutoConfiguration support for Metadata

1 participant