Class RedisFilterExpressionConverter
java.lang.Object
org.springframework.ai.vectorstore.filter.converter.AbstractFilterExpressionConverter
org.springframework.ai.vectorstore.RedisFilterExpressionConverter
- All Implemented Interfaces:
FilterExpressionConverter
Converts
Filter.Expression
into Redis search filter expression format.
(https://redis.io/docs/interact/search-and-query/query/)- Author:
- Julien Ruaux
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.springframework.ai.vectorstore.RedisFilterExpressionConverter.NumericBoundary
static final org.springframework.ai.vectorstore.RedisFilterExpressionConverter.NumericBoundary
-
Constructor Summary
ConstructorsConstructorDescriptionRedisFilterExpressionConverter
(List<RedisVectorStore.MetadataField> metadataFields) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doEndGroup
(Filter.Group group, StringBuilder context) protected void
doExpression
(Filter.Expression expression, StringBuilder context) protected void
doKey
(Filter.Key key, StringBuilder context) protected void
doStartGroup
(Filter.Group group, StringBuilder context) Methods inherited from class org.springframework.ai.vectorstore.filter.converter.AbstractFilterExpressionConverter
convertExpression, convertOperand, convertOperand, doAddValueRangeSpitter, doEndValueRange, doGroup, doNot, doSingleValue, doStartValueRange, doValue, hasOuterQuotes, removeOuterQuotes
-
Field Details
-
POSITIVE_INFINITY
public static final org.springframework.ai.vectorstore.RedisFilterExpressionConverter.NumericBoundary POSITIVE_INFINITY -
NEGATIVE_INFINITY
public static final org.springframework.ai.vectorstore.RedisFilterExpressionConverter.NumericBoundary NEGATIVE_INFINITY
-
-
Constructor Details
-
RedisFilterExpressionConverter
-
-
Method Details
-
doStartGroup
- Overrides:
doStartGroup
in classAbstractFilterExpressionConverter
-
doEndGroup
- Overrides:
doEndGroup
in classAbstractFilterExpressionConverter
-
doKey
- Specified by:
doKey
in classAbstractFilterExpressionConverter
-
doExpression
- Specified by:
doExpression
in classAbstractFilterExpressionConverter
-