rename ip addr, use buffer

This commit is contained in:
Pascal Seitz
2022-10-06 13:13:05 +08:00
parent 5d6602a8d9
commit 0b86658389
8 changed files with 66 additions and 61 deletions

View File

@@ -400,7 +400,11 @@ impl QueryParser {
let bytes = base64::decode(phrase).map_err(QueryParserError::ExpectedBase64)?;
Ok(Term::from_field_bytes(field, &bytes))
}
FieldType::IpAddr(_) => Ok(Term::from_field_text(field, phrase)),
FieldType::IpAddr(_) => {
return Err(QueryParserError::UnsupportedQuery(
"Range query are not supported on IpAddr field.".to_string(),
));
}
}
}