feat: Introduce the DocumentsAddition type

This commit is contained in:
Clément Renault 2019-05-09 14:23:39 +02:00
parent 42e39f6eb5
commit e67ada8823
No known key found for this signature in database
GPG key ID: 0151CDAB43460DAE
5 changed files with 289 additions and 232 deletions

View file

@ -87,8 +87,7 @@ where S: Store,
{
fn query_all(&self, query: &str) -> Result<Vec<RawDocument>, S::Error> {
let automatons = generate_automatons(query);
let words = self.store.words()?;
let words = words.as_fst();
let words = self.store.words()?.as_fst();
let mut stream = {
let mut op_builder = fst::raw::OpBuilder::new();