spring-projects / spring-projects/spring-ai
Vector Store Filter Expression does not support boolean types
Open
Nobody has claimed this yet.
metadata filters
status: waiting-for-triage
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
The filter expression does not support boolean metadata fields.
Consider a document which has following metadata.
is_active: true
I tried various expressions. It does not work.
SearchRequest.builder()
.query(my_query)
.filterExpression("is_active == true")
.build()
Workaround is to stringify.
is_active: "true"
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 tracing SearchRequest.builder() and filterExpression("is_active == true") through the vector store filtering path. Compare boolean metadata handling with the documented string workaround, then verify that boolean metadata filters successfully match documents while existing expressions remain supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100