Commit Graph

324 Commits

Author SHA1 Message Date
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
043b1945af Closes #12 - parse json array as multiple values for the field
... Also adds some unit tests.
2016-08-16 19:02:23 +09:00
Paul Masurel
ed38007e9f NOBUG made building index from directory public 2016-08-16 11:55:10 +09:00
Paul Masurel
1f4fafd964 Added usage snippet for tantivy 2016-08-16 00:58:11 +09:00
Paul Masurel
d526928e38 Bumped version 2016-08-15 00:19:41 +09:00
Paul Masurel
cf50b97f8e FieldType::Text -> Str 2016-08-14 23:29:00 +09:00
Paul Masurel
4773c8581c Moved cli to another project 2016-08-14 23:08:17 +09:00
Paul Masurel
e847de1ebb Refactoring, and making server working with a dynamic schema 2016-08-14 14:28:36 +09:00
Paul Masurel
1807e0710c Bugfix in schema json decoder 2016-08-14 10:58:04 +09:00
Paul Masurel
29abea07d4 Refactoring 2016-08-14 10:26:56 +09:00
Paul Masurel
32aad98c15 Added test cases for parse_document. 2016-08-14 01:48:34 +09:00
Paul Masurel
9a65b0a8e9 Changed the serialization format. 2016-08-14 00:30:35 +09:00
Paul Masurel
4c42c314e3 Changed serialization of field_entry 2016-08-13 23:45:12 +09:00
Paul Masurel
f66a48af42 Bugfix in merger 2016-08-13 20:14:00 +09:00
Paul Masurel
a3ab3940c3 Bugfix positions. 2016-08-13 16:50:48 +09:00
Paul Masurel
654769bb60 merging positions. 2016-08-13 15:59:12 +09:00
Paul Masurel
2a8262e15e Added positions in postings. 2016-08-13 15:36:39 +09:00
Paul Masurel
c3e3715cbd Can request for more or less functionality when opening a segment postings. 2016-08-13 14:15:28 +09:00
Paul Masurel
9a8f153d2b positions 2016-08-13 13:15:39 +09:00
Paul Masurel
cf1415a17c Misc fixes. 2016-08-13 00:31:56 +09:00
Paul Masurel
1fba8a2b58 blop 2016-08-12 10:13:01 +09:00
Paul Masurel
6bfe41e963 Using hashmap 2016-08-12 09:40:28 +09:00
Paul Masurel
e644a371d6 moving stuff around in the segment writer 2016-08-12 09:07:27 +09:00
Paul Masurel
57626cd217 indexing untokenized fields 2016-08-12 00:50:23 +09:00
Paul Masurel
e017840377 BUGFIX - every field was recording term frequency. (no position) 2016-08-12 00:46:22 +09:00
Paul Masurel
841a54546e added extra doc file 2016-08-11 21:18:59 +09:00
Paul Masurel
8f812c7cd4 blop 2016-08-11 17:54:06 +09:00
Paul Masurel
e76dc40aaf hiding some inner module 2016-08-11 16:26:18 +09:00
Paul Masurel
86449deba5 Updated schema doc. Fixed test cases. 2016-08-11 14:36:17 +09:00
Paul Masurel
edbff60d66 Added cli 2016-08-11 10:48:24 +09:00
Paul Masurel
ca24daae51 Added CLI wizard for index new 2016-08-11 00:37:07 +09:00
Paul Masurel
c53a930389 Reintroduced cli command in tantivy 2016-08-10 10:08:18 +09:00
Paul Masurel
f9ee6c45bd Added occur 2016-08-07 00:06:03 +09:00
Paul Masurel
179095fb6a Allow for u32 terms in query. 2016-08-06 18:59:07 +09:00
Paul Masurel
d4bbec6631 Safer interface for union_postings 2016-08-06 18:30:05 +09:00
Paul Masurel
0ee473f474 Added tantivy::Error 2016-08-06 17:02:31 +09:00
Paul Masurel
79158e98eb advance, added next 2016-08-06 12:01:31 +09:00
Paul Masurel
bf0d072c2d next() -> advance() 2016-08-06 11:50:17 +09:00
Paul Masurel
bc54db6872 Explanation as a struct 2016-08-06 11:17:05 +09:00
Paul Masurel
140f6fd2b4 explanation kind of working in an ugly way. 2016-08-05 12:02:13 +09:00
Paul Masurel
2b571729a1 Merge branch 'master' of github.com:fulmicoton/tantivy 2016-08-04 17:02:27 +09:00
Paul Masurel
86f105bd7a Added serve command 2016-08-04 10:16:24 +09:00
Paul Masurel
66ebbae85a No influence from starting and trailing spaces. 2016-08-04 00:53:24 +09:00
Paul Masurel
16dc695614 Added some tests 2016-08-03 23:05:38 +09:00
Paul Masurel
316bdcf835 Added test for term 2016-08-03 22:46:16 +09:00
Paul Masurel
87659987d8 add more test to query parser 2016-08-03 22:31:40 +09:00
Paul Masurel
90132121c9 Added unit test for query parser. More stuff in terms. 2016-08-03 22:15:31 +09:00
Paul Masurel
5a32ba7181 Added unit test for multi collector 2016-08-03 21:45:45 +09:00
Paul Masurel
c93b9a2b64 Change benchmark 2016-08-03 21:39:02 +09:00
Paul Masurel
44f3f23d48 Changed block size to 16K 2016-08-03 15:42:10 +09:00