13 Commits

Author SHA1 Message Date
Tim Visée
afe60f143f
Use array_windows when statically sized windows were used (#8348)
* Use array_windows when statically sized windows were used

* Bump MSRV to 1.94

* fix in gpu code

---------

Co-authored-by: Luis Cossío <luis.cossio@outlook.com>
2026-03-26 17:44:32 +01:00
dependabot[bot]
a7739dbf2d
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-03-26 17:09:49 +01:00
Arnaud Gourlay
118ff6dda3
Fix Clippy 1.89 (#6981) 2025-08-11 13:16:42 +02:00
Arnaud Gourlay
5ac506751f
Remove hardware measurement from fulltext index (#6884) 2025-08-11 13:16:36 +02:00
Arnaud Gourlay
98867d7735 Bump http 1.3.1 (#6849) 2025-07-17 13:55:49 +02:00
Arnaud Gourlay
ecb3015de9 Optimize fast path for finding chunk in positing list (#6811) 2025-07-17 13:49:20 +02:00
Luis Cossío
3cce0f5032 [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-07-17 13:07:44 +02:00
Luis Cossío
3b885dd273 [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-07-17 13:05:29 +02:00
Luis Cossío
77114e2198 [phrase match] Generic mmap postings (#6619)
* generic MmapPostings<V>

impl MmapPostingValue for Positions

* simplify associated types
2025-07-17 11:13:38 +02:00
Luis Cossío
d198ba84d8 [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-07-17 11:12:23 +02:00
Luis Cossío
1d0d6fc429 measure hardware in generic posting list (#6583) 2025-07-17 11:08:05 +02:00
Luis Cossío
3942071b9f 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-07-17 11:07:57 +02:00
Luis Cossío
ba45d9a699 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 23:28:00 +02:00