Refactoring around Field (#673)

* Refactoring around Field

Removing the contract about the order of the field, and the
field id allocation.

* Update delete_queue.rs

* Update field.rs
This commit is contained in:
Paul Masurel
2019-10-25 09:06:44 +09:00
committed by GitHub
parent 46caec1040
commit 7b21b3f25a
17 changed files with 117 additions and 76 deletions

View File

@@ -118,7 +118,7 @@ mod tests {
#[test]
fn test_term_query_debug() {
let term_query = TermQuery::new(
Term::from_field_text(Field(1), "hello"),
Term::from_field_text(Field::from_field_id(1), "hello"),
IndexRecordOption::WithFreqs,
);
assert_eq!(