Add fast field for associating arbitrary bytes to a document (#275)

* Add fast field for associating arbitrary bytes to a document

* Fix unused macro_use warning

* Improvements from code review

* Make BytesFastFieldWriter public

* Fix json parsing validation failure

* Add bytes fast field to CHANGELOG.md

* Fix compile errors from merge

* Support merging

* Address misc code review comments

* Fix comments from CR
This commit is contained in:
Jason Wolfe
2018-05-08 11:30:31 +09:00
committed by Paul Masurel
parent 99c0b84036
commit 8e343b1ca3
22 changed files with 521 additions and 53 deletions

View File

@@ -227,6 +227,10 @@ impl QueryParser {
let term = Term::from_field_text(field, phrase);
Ok(Some(LogicalLiteral::Term(term)))
}
FieldType::Bytes => {
let field_name = self.schema.get_field_name(field).to_string();
Err(QueryParserError::FieldNotIndexed(field_name))
}
}
}