Skip to content

Added the NUMERIC_IN query clause to manage the Spring-like methods '… #645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

foogaro
Copy link
Contributor

@foogaro foogaro commented Aug 11, 2025

Changes

feat(query): add NUMERIC_IN query clause for Redis repository 'In' methods
fix(indexing): enable @NumericIndexed type for @Id fields without schema duplication error

Query

Introduced support for the NUMERIC_IN query clause to handle Spring Data style repository methods ending with 'In'.
This enables querying Redis repositories using a collection of numeric values, improving parity with Spring Data JPA query method conventions and enhancing developer ergonomics.

Example:

  findByIdIn(List<Integer> ids)

Indexing

Previously, configuring an @Id field with the @NumericIndexed index type was technically possible but caused index creation to fail with:

2025-08-11T16:42:09.406+02:00 WARN c.r.o.s.indexing.RediSearchIndexer - [main] - createIndexFor - Skipping index creation for com.foogaro.modeling.model.DocumentsIdx because Duplicate field in schema - id

This happened because the Id field was already implicitly added to the index schema, and explicitly declaring it as @NumericIndexed created a duplicate entry.
Now, the check also considers @NumericIndexed in the “already indexed” list, so it won’t add it twice.

@foogaro foogaro requested a review from bsbodden August 11, 2025 21:32
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.

1 participant