diff --git a/src/aggregation/bucket/range.rs b/src/aggregation/bucket/range.rs index 7029dab839..4773831640 100644 --- a/src/aggregation/bucket/range.rs +++ b/src/aggregation/bucket/range.rs @@ -323,8 +323,8 @@ impl SegmentRangeCollector { /// Converts the user provided f64 range value to fast field value space. /// /// Internally fast field values are always stored as u64. -/// If the fast field has u64 [1,2,5], these values are stored as is in the fast field. -/// A fast field with f64 [1.0, 2.0, 5.0] is converted to u64 space, using a +/// If the fast field has u64 `[1, 2, 5]`, these values are stored as is in the fast field. +/// A fast field with f64 `[1.0, 2.0, 5.0]` is converted to u64 space, using a /// monotonic mapping function, so the order is preserved. /// /// Consequently, a f64 user range 1.0..3.0 needs to be converted to fast field value space using diff --git a/src/postings/compression/mod.rs b/src/postings/compression/mod.rs index cfd353ec01..7d16fc7422 100644 --- a/src/postings/compression/mod.rs +++ b/src/postings/compression/mod.rs @@ -106,7 +106,7 @@ impl BlockDecoder { pub trait VIntEncoder { /// Compresses an array of `u32` integers, - /// using [delta-encoding](https://en.wikipedia.org/wiki/Delta_ encoding) + /// using [delta-encoding](https://en.wikipedia.org/wiki/Delta_encoding) /// and variable bytes encoding. /// /// The method takes an array of ints to compress, and returns diff --git a/src/query/boolean_query/block_wand.rs b/src/query/boolean_query/block_wand.rs index c784901436..2dd2606e03 100644 --- a/src/query/boolean_query/block_wand.rs +++ b/src/query/boolean_query/block_wand.rs @@ -144,7 +144,7 @@ fn advance_all_scorers_on_pivot(term_scorers: &mut Vec, /// Implements the WAND (Weak AND) algorithm for dynamic pruning /// described in the paper "Faster Top-k Document Retrieval Using Block-Max Indexes". -/// Link: http://engineering.nyu.edu/~suel/papers/bmw.pdf +/// Link: pub fn block_wand( mut scorers: Vec, mut threshold: Score, diff --git a/src/query/more_like_this/more_like_this.rs b/src/query/more_like_this/more_like_this.rs index f1faaf687c..995a141c8e 100644 --- a/src/query/more_like_this/more_like_this.rs +++ b/src/query/more_like_this/more_like_this.rs @@ -33,9 +33,9 @@ impl Ord for ScoreTerm { } } -/// A struct used as helper to build [`MoreLikeThisQuery`] -/// This more-like-this implementation is inspired by the Appache Lucene -/// amd closely follows the same implementation with adaptabtion to Tantivy vocabulary and API. +/// A struct used as helper to build [`MoreLikeThisQuery`](crate::query::MoreLikeThisQuery) +/// This more-like-this implementation is inspired by the Apache Lucene +/// and closely follows the same implementation with adaptation to Tantivy vocabulary and API. /// /// [MoreLikeThis](https://github.com/apache/lucene/blob/main/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.java#L147) /// [MoreLikeThisQuery](https://github.com/apache/lucene/blob/main/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThisQuery.java#L36) diff --git a/src/tokenizer/ngram_tokenizer.rs b/src/tokenizer/ngram_tokenizer.rs index b268d61050..150e58e78d 100644 --- a/src/tokenizer/ngram_tokenizer.rs +++ b/src/tokenizer/ngram_tokenizer.rs @@ -255,7 +255,7 @@ where T: Iterator /// Emits all of the offsets where a codepoint starts /// or a codepoint ends. /// -/// By convention, we emit [0] for the empty string. +/// By convention, we emit `[0]` for the empty string. struct CodepointFrontiers<'a> { s: &'a str, next_el: Option,