Paul Masurel
37e4280c0a
Cargo Format ( #420 )
2018-09-15 07:44:22 +09:00
pentlander
8600b8ea25
Top collector ( #413 )
...
* Make TopCollector generic
Make TopCollector take a generic type instead of only being tied to
score. This will allow for sharing code between a TopCollector that
sorts results by Score and a TopCollector that sorts documents by a fast
field. This commit makes no functional changes to TopCollector.
* Add TopFieldCollector and TopScoreCollector
Create two new collectors that use the refactored TopCollector.
TopFieldCollector has the same functionality that TopCollector
originally had. TopFieldCollector allows for sorting results by a given
fast field. Closes tantivy-search/tantivy#388
* Make TopCollector private
Make TopCollector package private and export TopFieldCollector as
TopCollector to maintain backwards compatibility. Mark TopCollector
as deprecated to encourage use of the non-aliased TopFieldCollector.
Remove Collector implementation for TopCollector since it is not longer
used.
2018-09-14 09:22:17 +09:00
Paul Masurel
644d8a3a10
Added snippet generator
2018-09-10 16:39:45 +09:00
Paul Masurel
e32dba1a97
Phrase weight
2018-09-10 09:26:33 +09:00
Paul Masurel
9101bf5753
Fragments
2018-09-07 09:57:12 +09:00
Paul Masurel
a12d211330
Extracting terms matching query in the document
2018-08-30 09:23:34 +09:00
Dru Sellers
e301e0bc87
Add some simple doc tests ( #320 )
...
* Add TopCollector doc test
* Add CountCollector Doc Test
* Add Doc Test for MultiCollector
* Add ChainedCollector Doc Test
* Expose Fuzzy Query where it should be
* Add FuzzyTermQuery Doc Test
* Expose RegexQuery
* Regex Query Doc Test
* Add TermQuery Doc Test
* Add doc comments
* fix test 🤦
* Added explanation about the complexity variables
* Fixing unit tests
* Single threads if you check docids
2018-06-19 10:45:20 +09:00
Jason Wolfe
0cea706f10
Add docs to new Query methods ( #307 )
2018-05-18 13:53:29 +09:00
Jason Wolfe
72acad0921
Add box_clone() and downcast::Any to Query ( #303 )
2018-05-18 09:53:11 +09:00
Paul Masurel
78673172d0
Cargo fmt
2018-04-21 20:05:36 +09:00
Paul Masurel
e44782bf14
No more
2018-04-12 13:01:11 +09:00
Paul Masurel
1d9566e73c
Making mmap a feature
2018-03-31 13:23:43 +09:00
Paul Masurel
ffa03bad71
TermScorer does not handle deletes
2018-03-27 17:35:20 +09:00
Paul Masurel
4d65771e04
field norm reader is not an option anymore.
2018-03-26 13:25:29 +09:00
Paul Masurel
3ae03b91ae
PhraseScorer's score aligned with that of Lucene.)
2018-03-25 12:44:16 +09:00
Paul Masurel
b7f8884246
Closes #245 = BM25. ( #260 )
...
* Closes #245 = BM25.
Scores are the same as Lucene.
* Fixing travis conf
2018-03-22 15:06:56 +09:00
Paul Masurel
e22f767fda
Backmerge
2018-03-21 21:18:46 +09:00
Paul Masurel
3ecfc36e53
Total field norm fixed.
2018-03-21 20:43:02 +09:00
Paul Masurel
1c9450174e
Fieldnorm reader working except merge
2018-03-21 17:36:16 +09:00
Paul Masurel
4ee2db25a0
Generic on Postings rather than deletes in TermScorer
2018-02-22 08:26:45 +09:00
Paul Masurel
e423784fd0
Added specialized SegmentPostings when there are no DeleteSet
2018-02-21 23:49:20 +09:00
Paul Masurel
f16cc6367e
Refactoring of fastfields
2018-02-20 12:52:30 +09:00
Paul Masurel
ef94582203
Rustfmt
2018-02-19 12:12:10 +09:00
Paul Masurel
2f242d5f52
Moving docset around
2018-02-19 12:07:05 +09:00
Paul Masurel
42fd3fe5c7
Bugfix on TermWeight::count()
2018-02-18 10:59:18 +09:00
Paul Masurel
e608e0a1df
Removed half baked usage of Any
2018-02-18 10:01:14 +09:00
Paul Masurel
6c8c90d348
Removed lifetime from scorer
2018-02-18 09:12:40 +09:00
Paul Masurel
eb50e92ec4
Removed specialized postings on SegmentPostings
2018-02-18 00:09:15 +09:00
Paul Masurel
6676fe5717
Added a count method
2018-02-17 15:02:51 +09:00
Paul Masurel
292bb17346
Disable scoring
...
- Disabling scoring is an argument of the `.weight()` method
- Collectors declare whether they need scoring
2018-02-17 12:43:16 +09:00
Paul Masurel
1da06d867b
Using the same logic when score is enabled.
2018-02-16 17:36:33 +09:00
Paul Masurel
1593e1dc6f
Added reqopt
2018-02-16 11:22:39 +09:00
Paul Masurel
fdd5dd8496
Merge branch 'master' into issue/query-perf
2018-02-02 16:39:28 +09:00
Paul Masurel
dd8332c327
Added disabling scoring
2018-02-02 12:11:56 +09:00
Paul Masurel
b78efdc59f
NOBUG Use the skipping logic of segment postings in
2018-02-01 18:36:55 +09:00
Paul Masurel
1947a19700
Added bitse
2018-01-31 23:56:54 +09:00
Paul Masurel
1e55189db1
NOBUG rustfmt
2017-12-14 19:30:31 +09:00
Paul Masurel
f24e5f405e
NOBUG intellij misc lint
2017-12-14 18:23:35 +09:00
Paul Masurel
426cc436da
Test passing
2017-09-10 17:48:41 +09:00
Paul Masurel
f8710bd4b0
Format
2017-08-28 18:22:41 +09:00
Paul Masurel
8d05b8f7b2
Added comments. Renamed field reader
2017-08-28 17:00:12 +09:00
Paul Masurel
413d0e1719
NOBUG test passing
2017-08-13 17:57:11 +09:00
Paul Masurel
236fa74767
Positions almost working.
2017-08-05 23:17:35 +09:00
Paul Masurel
19c073385a
Better intersection and added size_hint
2017-05-31 08:31:33 +09:00
Laurentiu Nicola
ac02c76b1e
clippy: fix doc_markdown warnings
2017-05-17 15:50:07 +09:00
Paul Masurel
4c8f9742f8
format
2017-05-15 22:30:18 +09:00
Paul Masurel
26cfe2909f
FastField with different types
2017-05-04 16:46:13 +08:00
Paul Masurel
deb04eb090
issue/65 Switching to u64.
2017-05-04 16:46:13 +08:00
Paul Masurel
15b60d72cc
NOBUG add_document does not return result
2017-02-27 09:36:41 +09:00
Paul Masurel
6a002bcc76
NOBUGwq
2017-02-25 21:20:55 +09:00