Allow range query on fastfield without INDEXED

This commit is contained in:
Pascal Seitz
2022-11-10 15:56:08 +08:00
parent 3edf0a2724
commit 9e8a0c2cca
2 changed files with 5 additions and 3 deletions

View File

@@ -333,7 +333,9 @@ impl QueryParser {
) -> Result<Term, QueryParserError> {
let field_entry = self.schema.get_field_entry(field);
let field_type = field_entry.field_type();
if !field_type.is_indexed() {
let is_ip_and_fast = field_type.is_ip_addr() && field_type.is_fast();
if !field_type.is_indexed() && !is_ip_and_fast {
return Err(QueryParserError::FieldNotIndexed(
field_entry.name().to_string(),
));