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"

Comment From: sunyuhan1998

That's true. Previously, I also submitted a similar PR #3516 attempting to support the Long type, but it hasn't received any feedback so far.

I'd like to confirm how we currently define the boundaries of FilterExpressionTextParser's capabilities, I believe FilterExpressionTextParser itself is a great feature, and I think it's unique among all projects similar to Spring AI. If we agree that the issue raised in this ticket should be supported, I'd be happy to submit a PR for it. @ilayaperumalg @markpollack