We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
When pydantic's max_items attribute is given a value.
max_items
interests: list[str] = Field( ..., full_text_search=True, max_items=10, max_length=20, title="Interests", description="List of interests. Upto 10 items, 20 character max", )
redis-om silently passes.
favorites: list[str] = Field( ..., full_text_search=True, title="Favorites", description="List of user IDs that this user has favorited", )
OUTPUT: aredis_om.model.model.RedisModelError: List and tuple fields cannot be indexed for full-text search. Problem field: favorites. See docs: TODO
aredis_om.model.model.RedisModelError: List and tuple fields cannot be indexed for full-text search. Problem field: favorites. See docs: TODO
Environment: python = 3.12 redis-om = 0.3.3 pydantic = v1
3.12
0.3.3
v1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
The Bug:
When pydantic's
max_items
attribute is given a value.redis-om silently passes.
What should Happen:
OUTPUT:
aredis_om.model.model.RedisModelError: List and tuple fields cannot be indexed for full-text search. Problem field: favorites. See docs: TODO
Environment:
python =
3.12
redis-om =
0.3.3
pydantic =
v1
The text was updated successfully, but these errors were encountered: