Skip to content

Commit 9497794

Browse files
authored
fix positions docs (#1511)
1 parent 4d634d6 commit 9497794

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/positions/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
//! Tantivy can (if instructed to do so in the schema) store the term positions in a given field.
22
//! This position is expressed as token ordinal. For instance,
3-
//! In "The beauty and the beast", the term "the" appears in position 0 and position 4.
3+
//! In "The beauty and the beast", the term "the" appears in position 0 and position 3.
44
//! This information is useful to run phrase queries.
55
//!
66
//! The [position](../enum.SegmentComponent.html#variant.Positions) file contains all of the
77
//! bitpacked positions delta, for all terms of a given field, one term after the other.
88
//!
99
//! Each term is encoded independently.
10-
//! Like for positing lists, tantivy relies on simd bitpacking to encode the positions delta in
11-
//! blocks of 128 deltas. Because we rarely have a multiple of 128, a final block may encode the
12-
//! remaining values variable byte encoding.
10+
//! Like for posting lists, tantivy relies on simd bitpacking to encode the positions delta in
11+
//! blocks of 128 deltas. Because we rarely have a multiple of 128, the final block encodes
12+
//! the remaining values with variable int encoding.
1313
//!
14-
//! In order to make reading possible, the term delta positions first encodes the number of
15-
//! bitpacked blocks, then the bitwidth for each blocks, then the actual bitpacked block and finally
14+
//! In order to make reading possible, the term delta positions first encode the number of
15+
//! bitpacked blocks, then the bitwidth for each block, then the actual bitpacked blocks and finally
1616
//! the final variable int encoded block.
1717
//!
1818
//! Contrary to postings list, the reader does not have access on the number of positions that is

0 commit comments

Comments
 (0)