Skip to content

Commit

Permalink
indexing untokenized fields
Browse files Browse the repository at this point in the history
  • Loading branch information
fulmicoton committed Aug 11, 2016
1 parent e017840 commit 57626cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core/segment_writer.rs
Expand Up @@ -127,12 +127,15 @@ impl SegmentWriter {
}
}
}
// TODO untokenized yet indexed
else {
let term = Term::from_field_text(field, field_value.text());
field_posting_writers.suscribe(doc_id, 0, term);
}
}
FieldEntry::U32(_, ref u32_options) => {
if u32_options.is_indexed() {
let term = Term::from_field_u32(field_value.field(), field_value.u32_value());
field_posting_writers.suscribe(doc_id, 0.clone(), term);
field_posting_writers.suscribe(doc_id, 0, term);
}
}
}
Expand Down

0 comments on commit 57626cd

Please sign in to comment.