add ip field

add u128 multivalue reader and writer
add ip to schema
add ip writers, handle merge
This commit is contained in:
Pascal Seitz
2022-09-20 16:17:34 +08:00
parent 5f565e77de
commit 400a20b7af
23 changed files with 966 additions and 33 deletions

View File

@@ -400,6 +400,7 @@ impl QueryParser {
let bytes = base64::decode(phrase).map_err(QueryParserError::ExpectedBase64)?;
Ok(Term::from_field_bytes(field, &bytes))
}
FieldType::Ip(_) => Ok(Term::from_field_text(field, phrase)),
}
}
@@ -506,6 +507,7 @@ impl QueryParser {
let bytes_term = Term::from_field_bytes(field, &bytes);
Ok(vec![LogicalLiteral::Term(bytes_term)])
}
FieldType::Ip(_) => Err(QueryParserError::FieldNotIndexed(field_name.to_string())),
}
}