Description
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":
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:
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.