We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Redis Version: 7.4.2 Search: 2.10.12 ReJSON: 2.8.8 NRedisStack version: 0.13.2
Creating a schema for a numeric (and text) field with both missingIndex and sortable set to true fails with "Field INDEXMISSING does not have a type":
missingIndex
sortable
INDEXMISSING
schema.AddNumericField(new FieldName("test", "test"), missingIndex: true, sortable: true);
This raw query fails the same way:
FT.CREATE idx:test ON JSON PREFIX 1 test: SCHEMA "$.test" AS test NUMERIC SORTABLE INDEXMISSING
It appears that INDEXMISSING must come before SORTABLE since the following works:
SORTABLE
FT.CREATE idx:test ON JSON PREFIX 1 test: SCHEMA "$.test" AS test NUMERIC INDEXMISSING SORTABLE
The AddFieldTypeArgs in Schema.cs should be updated to add INDEXMISSING first.
AddFieldTypeArgs
Schema.cs
The text was updated successfully, but these errors were encountered:
Hi @JohnTheGray , thanks for reporting the issue. i see explanation is clear enough to bring a fix on it. i ll work on this next week.
Sorry, something went wrong.
atakavci
Successfully merging a pull request may close this issue.
Redis Version: 7.4.2
Search: 2.10.12
ReJSON: 2.8.8
NRedisStack version: 0.13.2
Creating a schema for a numeric (and text) field with both
missingIndex
andsortable
set to true fails with "FieldINDEXMISSING
does not have a type":This raw query fails the same way:
It appears that
INDEXMISSING
must come beforeSORTABLE
since the following works:The
AddFieldTypeArgs
inSchema.cs
should be updated to addINDEXMISSING
first.The text was updated successfully, but these errors were encountered: