Commit Graph
42 Commits
Author SHA1 Message Date
Paul Masurel e8d5baa44b NOBUG Adding documentation 2016-09-20 08:58:43 +09:00
Paul Masurel 17715fe84c Added documentation 2016-09-20 00:43:52 +09:00
Paul Masurel f3a24f5b3c NOBUG Code cleaning , cargo clippy 2016-09-19 17:01:37 +09:00
Paul Masurel 89cac9225b NOBUG Added unit test 2016-09-18 23:29:32 +09:00
Paul Masurel b2afe8592c Erased text in README 2016-08-26 10:17:09 +09:00
Paul Masurel ce95bfd9a5 Closes #19. Move example to examples directory. 2016-08-24 10:58:08 +09:00
Paul Masurel e6200e85af Schema now:
- internally wrapped by an Arc, cloning aggressively is ok.
- a field in schema, redundant with metas
- read-only. Needs to be built via a SchemaBuilder.
2016-08-23 22:23:47 +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 1f4fafd964 Added usage snippet for tantivy 2016-08-16 00:58:11 +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 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 4c42c314e3 Changed serialization of field_entry 2016-08-13 23:45:12 +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 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 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 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 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 4acc6f673d Lighter HeapItem by putting term freq aside, and keeping ord as u32 2016-08-03 11:29:15 +09:00
Paul Masurel b1056b6455 Added bench cli 2016-08-02 10:21:28 +09:00
Paul Masurel f94efcf5aa More than one default field in query parser. fst version to 1.3.1. 2016-08-01 09:22:01 +09:00
Paul Masurel 090973ff16 Added field norms. 2016-07-31 22:01:54 +09:00
Paul Masurel 04556c454a added top collector 2016-07-29 16:20:57 +09:00
Paul Masurel 4e4937ebb6 Query parser. 2016-07-28 21:29:27 +09:00
Paul Masurel 5f64e1ec9c added a simple query parser 2016-07-28 17:48:43 +09:00
Paul Masurel d2a67c637f Added unit test 2016-07-25 17:01:34 +09:00
Paul Masurel 1080fe19dc Added test for tfidf score, added skip 2016-07-24 17:35:33 +09:00
Paul Masurel 852ce73849 test passing. 2016-07-23 23:15:10 +09:00
Paul Masurel 68f8c1877e Attempt to add a tfidf multitermscorer. 2016-07-20 21:49:48 +09:00
Paul Masurel 7960a00b99 Multi term queries + postings. 2016-07-03 22:44:37 +09:00
Paul Masurel 36684d76c5 Added a bunch of test, change read_postings to work on a term 2016-06-20 21:27:02 +09:00
Paul Masurel 55507a8e0f Added read_postings. 2016-06-20 09:41:17 +09:00
Paul Masurel b93fa39910 Added test for field entry json ser/deser 2016-06-19 23:01:24 +09:00
Paul Masurel 3d8cd078d1 delegating the search logic to a query trait. 2016-06-12 16:22:40 +09:00