diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 4bd5c32f3..f26cf2366 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -249,7 +249,7 @@ For instance, when the phrase query "the art of war" does not match "the war of To make it possible, it is possible to specify in the schema that a field should store positions in addition to being indexed. The token positions of all of the terms are then stored in a separate file with the extension `.pos`. -The [TermInfo](src/postings/term_info.rs) gives an offset (expressed in position this time) in this file. As we iterate throught the docset, +The [TermInfo](src/postings/term_info.rs) gives an offset (expressed in position this time) in this file. As we iterate through the docset, we advance the position reader by the number of term frequencies of the current document. ## [fieldnorms/](src/fieldnorms): Here is my doc, how many tokens in this field? diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a166c214..b0c9a47bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,7 +29,7 @@ Tantivy 0.17 Tantivy 0.16.2 ================================ -- Bugfix in FuzzyTermQuery. (tranposition_cost_one was not doing anything) +- Bugfix in FuzzyTermQuery. (transposition_cost_one was not doing anything) Tantivy 0.16.1 ======================== diff --git a/doc/src/index_sorting.md b/doc/src/index_sorting.md index 49627c25a..683053c37 100644 --- a/doc/src/index_sorting.md +++ b/doc/src/index_sorting.md @@ -38,7 +38,7 @@ Note: Tantivy 0.16 does not do this optimization yet. In principle there are many algorithms possible that exploit the monotonically increasing nature. (aggregations maybe?) ## Usage -The index sorting can be configured setting [`sort_by_field`](https://github.com/quickwit-oss/tantivy/blob/000d76b11a139a84b16b9b95060a1c93e8b9851c/src/core/index_meta.rs#L238) on `IndexSettings` and passing it to a `IndexBuilder`. As of tantvy 0.16 only fast fields are allowed to be used. +The index sorting can be configured setting [`sort_by_field`](https://github.com/quickwit-oss/tantivy/blob/000d76b11a139a84b16b9b95060a1c93e8b9851c/src/core/index_meta.rs#L238) on `IndexSettings` and passing it to a `IndexBuilder`. As of Tantivy 0.16 only fast fields are allowed to be used. ``` let settings = IndexSettings { diff --git a/doc/src/json.md b/doc/src/json.md index 810ea610a..15ef485e9 100644 --- a/doc/src/json.md +++ b/doc/src/json.md @@ -86,7 +86,7 @@ If one more json field is defined, things get even more complicated. ## Default json field If the schema contains a text field called "text" and a json field that is set as a default field: -`text:hello` could be reasonably interpreted as targetting the text field or as targetting the json field called `json_dynamic` with the json_path "text". +`text:hello` could be reasonably interpreted as targeting the text field or as targeting the json field called `json_dynamic` with the json_path "text". If there is such an ambiguity, we decide to only search in the "text" field: `text:hello`. diff --git a/src/aggregation/README.md b/src/aggregation/README.md index 054293dd8..c96454d07 100644 --- a/src/aggregation/README.md +++ b/src/aggregation/README.md @@ -12,7 +12,7 @@ Tantivy's aggregations have been designed to mimic the The code is organized in submodules: ## bucket -Contains all bucket aggregations, like range aggregation. These bucket aggregations group documents into buckets and can contain sub-aggegations. +Contains all bucket aggregations, like range aggregation. These bucket aggregations group documents into buckets and can contain sub-aggregations. ## metric Contains all metric aggregations, like average aggregation. Metric aggregations do not have sub aggregations. diff --git a/src/fastfield/writer.rs b/src/fastfield/writer.rs index 90f1916e6..51ec1f840 100644 --- a/src/fastfield/writer.rs +++ b/src/fastfield/writer.rs @@ -254,7 +254,7 @@ impl IntFastFieldWriter { self.vals.mem_usage() } - /// Returns the field that this writer is targetting. + /// Returns the field that this writer is targeting. pub fn field(&self) -> Field { self.field }