Compare commits

...

5 Commits
0.4.0 ... 0.4.2

Author SHA1 Message Date
Paul Masurel
52b1398702 NOBUG version 0.4.0 -> 0.4.1 2017-07-19 19:07:54 +09:00
Paul Masurel
7b9cd09a6e Closes #199. Unindexed fields are indexed as untokenized 2017-07-19 18:41:22 +09:00
Paul Masurel
4c423ad2ca Merge branch 'master' of github.com:tantivy-search/tantivy 2017-07-19 17:01:32 +09:00
Paul Masurel
9f542d5252 NOBUG Fix spelling of "encountered". (as reported by @dazzag24) 2017-07-19 16:59:50 +09:00
Paul Masurel
77d8e81ae4 issue/17 Slightly more explicit error message 2017-07-19 11:08:42 +09:00
6 changed files with 11 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "tantivy"
version = "0.4.0"
version = "0.4.1"
authors = ["Paul Masurel <paul.masurel@gmail.com>"]
build = "build.rs"
license = "MIT"

View File

@@ -188,7 +188,7 @@ impl SegmentReader {
/// Returns the segment postings associated with the term, and with the given option,
/// or `None` if the term has never been encounterred and indexed.
/// or `None` if the term has never been encountered and indexed.
///
/// If the field was not indexed with the indexing options that cover
/// the requested options, the returned `SegmentPostings` the method does not fail

View File

@@ -239,8 +239,9 @@ impl IndexMerger {
segment_postings_option = field_entry
.field_type()
.get_segment_postings_option()
.expect("Encounterred a field that is not supposed to be
indexed. Have you modified the index?");
.expect("Encountered a field that is not supposed to be
indexed. Have you modified the schema?");
last_field = Some(current_field);
// it is perfectly safe to call `.new_field`

View File

@@ -116,6 +116,9 @@ impl<'a> SegmentWriter<'a> {
self.doc_opstamps.push(add_operation.opstamp);
for (field, field_values) in doc.get_sorted_field_values() {
let field_options = schema.get_field_entry(field);
if !field_options.is_indexed() {
continue;
}
match *field_options.field_type() {
FieldType::Str(ref text_options) => {
let num_tokens: u32 = if text_options.get_indexing_options().is_tokenized() {

View File

@@ -9,7 +9,7 @@ use schema::TextIndexingOptions;
/// At this point the JSON is known to be valid.
#[derive(Debug)]
pub enum ValueParsingError {
/// Encounterred a numerical value that overflows or underflow its integer type.
/// Encountered a numerical value that overflows or underflow its integer type.
OverflowError(String),
/// The json node is not of the correct type.
/// (e.g. 3 for a `Str` type or `"abc"` for a u64 type)

View File

@@ -173,7 +173,7 @@ pub trait TermStreamer<V>: Sized {
///
/// If the end of the stream as been reached, and `.next()`
/// has been called and returned `None`, `.key()` remains
/// the value of the last key encounterred.
/// the value of the last key encountered.
///
/// Before any call to `.next()`, `.key()` returns an empty array.
fn key(&self) -> &[u8];
@@ -181,7 +181,7 @@ pub trait TermStreamer<V>: Sized {
/// Accesses the current value.
///
/// Calling `.value()` after the end of the stream will return the
/// last `.value()` encounterred.
/// last `.value()` encountered.
///
/// # Panics
///