{"record":{"id":"59f0176acc3d76c5","repo":"weaviate/weaviate","slug":"property-s-indexrangefilters-is-not-allowed","errorCode":null,"errorMessage":"property '%s': `indexRangeFilters` is not allowed for other than number/int/date data types","messagePattern":"property '(.+?)': `indexRangeFilters` is not allowed for other than number/int/date data types","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"usecases/schema/validation.go","lineNumber":207,"sourceCode":"\t_ map[string][]string,\n) error {\n\tpropName := propNamePrefix + \".\" + property.Name\n\n\t// at this point indexRangeFilters should be set (either by user or by defaults)\n\tif property.IndexRangeFilters == nil {\n\t\treturn fmt.Errorf(\"property '%s': `indexRangeFilters` not set\", propName)\n\t}\n\n\tif isPrimitive {\n\t\tswitch primitiveDataType {\n\t\tcase schema.DataTypeNumber, schema.DataTypeInt, schema.DataTypeDate:\n\t\t\treturn nil\n\t\tdefault:\n\t\t\t// do nothing\n\t\t}\n\t}\n\tif *property.IndexRangeFilters {\n\t\treturn fmt.Errorf(\"property '%s': `indexRangeFilters` is not allowed for other than number/int/date data types\",\n\t\t\tpropName)\n\t}\n\n\treturn nil\n}\n\n// validateNestedPropertyProcessing validates TextAnalyzerConfig on nested properties,\n// analogous to validatePropertyProcessing for top-level properties.\nfunc validateNestedPropertyProcessing(property *models.NestedProperty,\n\tprimitiveDataType, _ schema.DataType,\n\tisPrimitive, _ bool, propNamePrefix string,\n\tuserPresets map[string][]string,\n) error {\n\tpropName := propNamePrefix + \".\" + property.Name\n\n\t// Normalize empty config to nil.\n\tif property.TextAnalyzer != nil && !property.TextAnalyzer.ASCIIFold && len(property.TextAnalyzer.ASCIIFoldIgnore) == 0 && property.TextAnalyzer.StopwordPreset == \"\" {\n\t\tproperty.TextAnalyzer = nil","sourceCodeStart":189,"sourceCodeEnd":225,"githubUrl":"https://github.com/weaviate/weaviate/blob/75aa4b6d11f8818305aafd4440b4e32794f7ca04/usecases/schema/validation.go#L189-L225","documentation":"Validator validateNestedPropertyIndexRangeFilters: indexRangeFilters=true was requested for a type other than number/int/date. Range filtering via numeric index is only meaningful on orderable numeric/date types.","triggerScenarios":"Thrown at usecases/schema/validation.go:207 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set indexRangeFilters=false for non numeric/date nested properties","Use number, int, or date dataType if range filters are required"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"75aa4b6d11f8818305aafd4440b4e32794f7ca04","analyzedAt":"2026-09-04T14:58:20.392Z","contentChangedAt":"2026-09-04T14:58:20.392Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}