mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-07 01:32:53 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52b1398702 | ||
|
|
7b9cd09a6e | ||
|
|
4c423ad2ca | ||
|
|
9f542d5252 | ||
|
|
77d8e81ae4 |
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user