Paul Masurel
de60540e06
fixing compilation
2020-12-10 10:36:21 +02:00
Paul Masurel
c3e311e6b8
Removed 'static in compression_lz4.
2020-12-09 15:30:52 +09:00
barrotsteindev
ac704f2f22
WIP generic filter collector
2020-12-08 14:36:52 +02:00
Paul Masurel
be626083a0
Reorganized and added termdict unit tests.
2020-12-07 12:50:36 +09:00
Paul Masurel
b68fcca1e0
Minor changes
...
- Open{Write,Read}Error::wrap_io_error made public
- Arc<PathBuf> -> Arc<Path> in file_watcher.
2020-12-03 23:31:50 +09:00
Paul Masurel
af6dfa1856
Small refactoring
2020-12-03 14:27:05 +09:00
Paul Masurel
654c400a0b
TermDictionary.finish does not flush
2020-12-03 13:36:25 +09:00
Paul Masurel
80a99539ce
Several TermDict operation now returns an io::Result
2020-12-03 13:13:11 +09:00
Paul Masurel
4b1c770e5e
Simplified counting writer and removed flush
2020-12-03 11:24:39 +09:00
Paul Masurel
3491645e69
Moved the term merger
2020-12-03 10:24:04 +09:00
Paul Masurel
e72c8287f8
Merge pull request #951 from tantivy-search/fst-isolated
...
Fst isolated
2020-12-03 10:11:39 +09:00
Paul Masurel
b4b3bc7acd
Cargo fmt
2020-12-03 10:08:38 +09:00
Paul Masurel
521c7b271b
Isolated fst impl of termdictionary in a specific module.
2020-12-02 21:18:33 +09:00
Paul Masurel
acd888c999
Merge pull request #950 from tantivy-search/guilload--fix-clippy-warning
...
Fix clippy warning
2020-12-02 08:09:31 +09:00
Adrien Guillo
3ab1ba0b2f
Fix clippy warning
2020-12-01 12:07:53 -08:00
Paul Masurel
b344c0ac05
Merge pull request #949 from tantivy-search/docset_is_send
...
DocSet is send
2020-12-01 19:12:51 +09:00
Paul Masurel
1741619c7f
DocSet is send
2020-12-01 19:11:21 +09:00
Paul Masurel
067ba3dff0
Merge pull request #946 from tantivy-search/issue/test-bugfix-atomicwrite
...
Attempt to fix bug surfacing sometimes in test.
2020-12-01 15:29:51 +09:00
Paul Masurel
f79250f665
Fix perf regression in the benchmark for the Count collector.
...
In order to reduce IO, we introduced a way to instanciate a dummy
constant FieldnormReader which worked by allocating a buffer with
as many bytes as there are docs in the segments.
This allocation is not a negligible by any mean.
This PR works by offering two implementation for the
FieldnormReader.
The const field norm reader simply returns the same value all of the
time, while the array based one does the same as the current one.
2020-12-01 08:51:32 +09:00
Paul Masurel
5a33b8d533
Merge pull request #942 from barrotsteindev/filter-collector
...
added initial implementation for filter_collector
2020-11-30 11:26:28 +09:00
Paul Masurel
d165655fb1
Added specialized implementation for count/count_including... in &mut DocSet
2020-11-30 11:24:13 +09:00
barrotsteindev
c805871b92
better test
2020-11-25 14:25:49 +02:00
barrotsteindev
f288e32634
rebaes on origin/main
2020-11-25 14:08:43 +02:00
barrotsteindev
bc44543d8f
added TPredicate generic param and updated tests
2020-11-25 14:08:24 +02:00
Paul Masurel
db514208a7
Removed the SegmentCollector type from the Generics of the
...
FilterCollector
2020-11-25 14:08:24 +02:00
barrotsteindev
b6ff29e020
simplified FilterCollector#for_segment
2020-11-25 14:08:24 +02:00
barrotsteindev
7c94dfdc15
fmt
2020-11-25 14:08:24 +02:00
barrotsteindev
8782c0eada
updated docs
2020-11-25 14:08:24 +02:00
barrotsteindev
fea0ba1042
removed unnecessary static liftimes
2020-11-25 14:08:24 +02:00
barrotsteindev
027555c75f
added initial implementation for filter_collector
2020-11-25 14:08:24 +02:00
Paul Masurel
b478ed747a
Attempt to fix bug surfacing sometimes in test.
...
Recently, `test_index_manual_policy_mmap` has been failing on Windows.
The idea addressed by this patch is that we forget to sync the parent
directory with the current implementation of atomic writes.
This was done correctly when we were relying the atomicwrites crate.
*crossing fingers*
2020-11-25 18:00:05 +09:00
Paul Masurel
e9aa27dace
Avoid computing the BM25 weight if scoring is disabled
2020-11-25 14:35:49 +09:00
Paul Masurel
c079133f3a
Merge pull request #945 from tantivy-search/guilload--replace-arc-box-with-arc
...
Replace some `Arc<Box<dyn...` with `Arc<dyn...`
2020-11-25 13:57:22 +09:00
Paul Masurel
30c5f7c5f0
Applied CR comments
2020-11-25 13:56:05 +09:00
Adrien Guillo
6f26871c0f
Replace some Arc<Box<dyn... with Arc<dyn...
2020-11-24 19:54:53 -08:00
Paul Masurel
f93cc5b5e3
Merge pull request #944 from tantivy-search/no-file-len-problem
...
No filelen problem.
2020-11-25 11:54:44 +09:00
Paul Masurel
5a25c8dfd3
No filelen problem.
2020-11-25 11:51:58 +09:00
Paul Masurel
f5c079159d
Merge pull request #943 from tantivy-search/guilload--ownedbytes-helper-methods
...
Add helper methods for reading u8 and u64 to `OwnedBytes`
2020-11-25 09:04:40 +09:00
Adrien Guillo
1cfdce3437
Add helper methods for reading u8 and u64 to OwnedBytes
2020-11-23 10:45:46 -08:00
Paul Masurel
e9e6d141e9
Merge pull request #941 from tantivy-search/revert-940-guilload--move-list-files-to-index
...
Revert "Move `SegmentUpdater::list_files()` to `Index`"
2020-11-20 13:54:05 +09:00
Paul Masurel
8d0e049261
Revert "Move SegmentUpdater::list_files() to Index"
2020-11-20 13:53:50 +09:00
Paul Masurel
0335c7353d
Merge pull request #940 from tantivy-search/guilload--move-list-files-to-index
...
Move `SegmentUpdater::list_files()` to `Index`
2020-11-18 11:08:20 +09:00
Adrien Guillo
267e920a80
Move SegmentUpdater::list_files() to Index
...
... and make the method public
2020-11-17 17:54:18 -08:00
Paul Masurel
d8a3a47e3e
Refactoring of the skip index.
...
Merge pull request #927 from tantivy-search/compact-store-index
The skip index now identifies both the start and the end offset of blocks. Checkpoints are compressed in blocks, reaching better compression.
2020-11-17 16:13:45 +09:00
Paul Masurel
7f0e61b173
Refactoring of the skip index.
...
The skip index now identifies both the start and the end offset
of blocks. Checkpoints are compressed in blocks, reaching better
compression.
2020-11-17 16:05:11 +09:00
Paul Masurel
ce4c50446b
Merge pull request #937 from tantivy-search/guilload--cache-store-reader-blocks
...
Cache store reader blocks in an LRU fashion
2020-11-17 13:45:10 +09:00
Adrien Guillo
9ab25d2575
Cache store reader blocks in an LRU fashion
2020-11-16 19:09:10 -08:00
Paul Masurel
6d4b982417
Marked blockwand test as ignored.
...
- Using impl trait for iterating `matching_segments` in the termdict
merger
2020-11-16 13:44:14 +09:00
Paul Masurel
650eca271f
Merge pull request #932 from tantivy-search/fix-unit-test-file-watcher
...
Fixing unit test.
2020-11-13 11:47:15 +09:00
Paul Masurel
8ee55aef6d
Fixing unit test.
2020-11-13 09:01:45 +09:00