Commit Graph

12 Commits

Author SHA1 Message Date
dependabot[bot]
18a7587d4b build(deps): bump rand_distr from 0.5.1 to 0.6.0 (#8148)
* build(deps): bump rand_distr from 0.5.1 to 0.6.0

Bumps [rand_distr](https://github.com/rust-random/rand_distr) from 0.5.1 to 0.6.0.
- [Release notes](https://github.com/rust-random/rand_distr/releases)
- [Changelog](https://github.com/rust-random/rand_distr/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/rand_distr/compare/0.5.1...0.6.0)

---
updated-dependencies:
- dependency-name: rand_distr
  dependency-version: 0.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Migrate main code base to rand 0.10

* Migrate tests

* Migrate benches

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: timvisee <tim@visee.me>
2026-02-25 14:15:04 +01:00
Arnaud Gourlay
255dd51e5a Fix Clippy 1.89 (#6981) 2025-08-05 18:06:04 +02:00
Arnaud Gourlay
a2b9a50381 Remove hardware measurement from fulltext index (#6884) 2025-08-05 17:28:49 +02:00
Arnaud Gourlay
4ec0adf941 Bump http 1.3.1 (#6849) 2025-07-11 09:32:41 +02:00
Arnaud Gourlay
c5f1db345f Optimize fast path for finding chunk in positing list (#6811) 2025-07-08 09:59:57 +02:00
Luis Cossío
0bec64df21 [phrase matching] Handle phrase filtering (#6654)
* include and handle ParsedQuery::Phrase variant

* phrase congruence test + fixes/edits

* fix rocksdb cfg feature flags

* enable debug assertions in ci profile

* review nits
2025-06-13 13:28:00 -04:00
Luis Cossío
052ce9bb36 [phrase matching] populate point_to_doc structures (#6493)
* populate point_to_doc

* add phrase_matching=true case to tests

* CBOR ordered Vec and BTreeSet have same representation

* review nits
2025-06-10 13:07:25 -04:00
Luis Cossío
96ca31a991 [phrase match] Generic mmap postings (#6619)
* generic MmapPostings<V>

impl MmapPostingValue for Positions

* simplify associated types
2025-06-03 15:21:00 -04:00
Luis Cossío
00b7062fe1 [phrase match] Generics improvements in PostingList<V> (#6597)
* make generic posting list lighter when there is no var_size_data needed

* simplify PostingList generics

* fix test

* self review
2025-06-02 12:39:29 -04:00
Luis Cossío
d1699c08ac measure hardware in generic posting list (#6583) 2025-05-28 09:27:17 -04:00
Luis Cossío
7a05502e0c Full text index with generic posting list (#6565)
* integrate generic posting list in full-text index

* improve intersection fn

improve iterator intersection

* make old module just for test

* recover old implementation of MmapPostings for tests

* add compatibility test

* fix compression

* clippy

* nits

* check if first id is already greater

protects against the case where the iterator's current element hasn't
been extracted yet

* update current element when there is no greater or equal

* reuse visitor in test

* optimize alignment

* bound checks and refactor is_in_range

* review

* edit comment

---------

Co-authored-by: generall <andrey@vasnetsov.com>
2025-05-27 18:53:41 -04:00
Luis Cossío
2ca170c76d Generalize compressed posting list (#6528)
* use chunks_exact in compressed sparse posting list builder

* generalized impls

make both impls similar

new design

make impls similar

generalize impls

* separate into files in new crate

* additional builder fns

new fn for builder

* retrieve current iterator position

* simplify traits

* restructure

* add iterator

* clippy

add contains fn

* fix find_chunk

* move builders to builder

* revamp generics and traits

* add model test vs var-sized posting list

* fmt

* clippy

* improve traits and generics

* fix get_by_offset

* generalize tests

* improve test

* restructure view into a new file

* to and from components

* value handler takes closure to prevent perf penalty

* clippy

* remove unused deps

* revert changes in sparse index

* self review nits

* reword

* clippy

* edit comment

* lock CHUNK_LEN, but assert it is synced with BitPacker4x

* remove Sized constraint in iterator

* rename VarSized* to Unsized*

And add more from_components helpers

* avoid intermediate allocation when writing UnsizedValue

* checked u32 conversions

* fix test

* clippy

* Add debug assertion, assert that point ID is in range

* Bound check in get_by_offset

* improve tests to check against various lengths and offsets

* clippy 😤

---------

Co-authored-by: timvisee <tim@visee.me>
2025-05-22 12:40:09 -04:00