Commit Graph

19 Commits

Author SHA1 Message Date
Paul Masurel
f3a24f5b3c NOBUG Code cleaning , cargo clippy 2016-09-19 17:01:37 +09:00
Paul Masurel
95d16d916b Removed dead code. 2016-09-15 09:15:09 +09:00
Paul Masurel
7969fb3a71 Use logging. 2016-09-15 00:00:14 +09:00
Paul Masurel
346fc31ac2 Chaining heaps.
We commit close segments when the indexer heap is close to its capacity.
(currently we use a limit of 10_000_000).

Because we do this check before indexing a document, and before
also because serialization starts by closing the postingswriter, and
therefore all of the recorders open for the last document, we may still
overflow the heap.

We don't want to resize the heap because we may have references to objects
in the current heap.

Because of that, heap are actually chained list.
In an ideal settings, the limit should work fine and this overflow behavior should
never be activated.
2016-09-14 10:27:55 +09:00
Paul Masurel
b911c4dc98 Indexing works. 3'22 2016-09-13 00:36:42 +09:00
Paul Masurel
50687a1c7c Renaming + new unit test 2016-09-08 09:26:14 +09:00
Paul Masurel
a612504e26 #8 Hashmap size as a function of the heap size 2016-09-06 22:13:55 +09:00
Paul Masurel
24d2e3f6c1 switching for the stacker datastructure 2016-09-05 10:27:14 +09:00
Paul Masurel
a599614a94 Code clean up. 2016-08-27 17:00:14 +09:00
Paul Masurel
0972a1c6a0 Removing data copy in the RAMDirectory
The fst crate recently added support for sliced `Arc<Vec<u8>>`.
This called for a rewrite of the RAMDirectory for tantivy's RAMDirectory.
Previously every single read was copying data.

In addition:
- RAMDirectory's Write object panic if someone does not flush
right before the destruction of the object.
- In the same spirit, the postings serializer panics if someone
opens a term without closing the previous one.

Closes #16
2016-08-18 10:45:34 +09:00
Paul Masurel
e486495cb8 Code cleaning. 2016-07-31 15:34:32 +09:00
Paul Masurel
5f64e1ec9c added a simple query parser 2016-07-28 17:48:43 +09:00
Paul Masurel
754f8cb132 Fixed merger. FstMap now simply iters on keys when merging. Hope it is not too slow 2016-06-22 10:22:33 +09:00
Paul Masurel
45746e4175 test passing again 2016-05-06 18:25:17 +09:00
Paul Masurel
e66b70051d test not compiling 2016-05-06 16:33:45 +09:00
Paul Masurel
84e8919c1f blop 2016-05-04 16:04:46 +09:00
Paul Masurel
a99bb13301 added skiplist 2016-05-03 14:05:03 +09:00
Paul Masurel
4cb3a7f077 moved common 2016-05-01 11:26:34 +09:00
Paul Masurel
26826ac4ea Moved postings and directory to a different module 2016-04-30 18:45:44 +09:00