Evance Souamoro
372d12766a
fix cargo fmt
2021-05-03 10:26:56 +00:00
Evance Souamoro
d71aa57077
reusing idf from bm25 module as it was the same logic
2021-05-03 10:05:40 +00:00
Evance Souamoro
712c01aa93
fixed term sorting & moved it to a better place
2021-05-01 05:40:59 +00:00
Evance Souamoro
cde324d4b4
fixed issues based on comment, still need to check BM25 suggestion
2021-04-30 21:14:19 +00:00
Evance Souamoro
2c0f6e3319
add builder to the public for documentation
2021-04-29 12:38:16 +00:00
Evance Souamoro
27f587aa13
applied cargo fmt
2021-04-29 12:15:34 +00:00
Evance Souamoro
cfc27c9665
add support for more like this query
2021-04-29 11:49:27 +00:00
Paul Masurel
075c23eb8c
Disabling fetching fieldnorm in phrasequery if scoring is disabled.
2021-04-27 14:06:41 +09:00
Paul Masurel
39dd8cfe24
Cargo clippy. Acronym should not be full uppercase apparently.
2021-04-26 11:49:18 +09:00
Paul Masurel
18bfe131fe
Removed all inline(always) like a baboon.
2021-04-23 10:47:13 +09:00
Evance Souamoro
d69aace9ec
fixed potential typo
2021-04-20 07:21:47 +00:00
Rihards Krišlauks
f58345f0f0
Add a date range query example to QueryParser documentation
2021-04-18 22:13:02 +03:00
Stéphane Campinas
a0ec6e1e9d
Expand the DocAddress struct with named fields
2021-03-28 19:00:23 +02:00
Laurent Pouget
4b34231f28
Make facet indexation and storage optional
...
Added a FacetOptions for HierarchicalFacet which add indexed and stored flags to it.
Propagate change and update tests accordingly
Added a test to ensure that a not indexed flag was taken care of.
Added on Value implem the `path()` function to return the stored facet.
2021-03-24 14:56:27 +01:00
bstrie
5f740d9ab4
Replace deprecated collections::Bound with ops::Bound
2021-03-18 17:20:36 -04:00
Paul Masurel
9c3cabce40
Updated version of the rand crate.
2021-01-06 18:09:00 +09:00
Paul Masurel
af6dfa1856
Small refactoring
2020-12-03 14:27:05 +09:00
Paul Masurel
80a99539ce
Several TermDict operation now returns an io::Result
2020-12-03 13:13:11 +09:00
Paul Masurel
1741619c7f
DocSet is send
2020-12-01 19:11:21 +09:00
Paul Masurel
e9aa27dace
Avoid computing the BM25 weight if scoring is disabled
2020-11-25 14:35:49 +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
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
a49e59053c
Making block wand test more robusts
2020-11-10 18:01:38 +09:00
Paul Masurel
d23aee76c9
Avoid loading fieldnorms when not necessary
2020-11-09 15:50:16 +09:00
Paul Masurel
36a0520a48
Added failing proptest and fixed it.
2020-11-05 15:40:00 +09:00
Paul Masurel
730ccefffb
Fixes a bug in TermQuery::explain.
...
Closes #915
2020-10-28 22:29:15 +09:00
Paul Masurel
9e27da8b4e
Added CR comments.
...
Added Unit tests.
2020-10-28 17:35:34 +09:00
Adrien Guillo
7f373f232a
Add helper methods for BooleanQuery
2020-10-28 17:35:34 +09:00
Paul Masurel
c23a03ad81
Large API Change in the Directory API. ( #901 )
...
Tantivy used to assume that all files could be somehow memory mapped. After this change, Directory return a `FileSlice` that can be reduced and eventually read into an `OwnedBytes` object. Long and blocking io operation are still required by they do not span over the entire file.
2020-10-08 16:36:51 +09:00
Paul Masurel
96f946d4c3
Raultang master ( #879 )
...
* add support for indexed bytes fast field
* remove backup code file
* refine test cases
* Simplified unit test. Renamed it as it is testing the storable part. Not the indexed part.
* Small refactoring and added unit test. If multivalued we only retain the first FAST value.
Co-authored-by: Raul <raul.tang.lc@gmail.com >
2020-10-01 18:03:18 +09:00
Paul Masurel
838c476733
Hirevo move to thiserror ( #889 )
...
* Migrated from `failure` to `thiserror`
* Refactoring
Co-authored-by: Nicolas Polomack <nicolas@polomack.eu >
2020-09-30 16:34:10 +09:00
Paul Masurel
19a02b2c30
Merge tag '0.13.1'
...
0.13.1 was published as a hotfix to accomodate tantivy-py.
2020-09-19 21:20:27 +09:00
Paul Masurel
07f9b828ae
Added Send and Sync to the Query trait.
2020-09-19 21:04:29 +09:00
Paul Masurel
4ce9517a82
fix unit test for bench. remove scoref64 feature. fixed test for lz4 feature.
2020-09-08 07:35:00 +09:00
Paul Masurel
73024a8af3
Fixing compilation of bench and doctests.
2020-09-08 07:18:43 +09:00
Paul Masurel
439d6956a9
Returning Result in some of the API ( #880 )
...
* Returning Result in some of the API
* Introducing `.writer_for_test(..)`
2020-09-07 15:52:34 +09:00
Paul Masurel
8af53cbd36
Merge branch 'master' of github.com:tantivy-search/tantivy
2020-08-21 08:57:42 +09:00
Paul Masurel
4914076e8f
Fixing release build
2020-08-21 08:57:27 +09:00
Paul Masurel
e04f47e922
Using block wand for term queries too.
2020-08-20 15:51:21 +09:00
Paul Masurel
f355695581
Code clean up
2020-08-20 15:42:50 +09:00
Paul Masurel
2481c87be8
Block wand ( #856 )
2020-08-19 22:36:36 +09:00
Paul Masurel
9b41912e66
Bugfix ( #861 )
2020-08-12 16:06:24 +09:00
Paul Masurel
6db8bb49d6
Assert nearly equals macro ( #853 )
...
* Assert nearly equals macro
* Renamed specialized_scorer in TermScorer
2020-07-17 16:40:41 +09:00
Paul Masurel
68fe406924
Removed asserts ( #850 )
2020-07-16 12:24:55 +09:00
Paul Masurel
f71b04acb0
Bugfix. ( #849 )
...
go_to_first_doc was typically calling seek with a target smaller than
doc.
Since SegmentPostings typically do a linear search on the full block,
regardless of the current position, it could have our segment postings
go backward.
2020-07-16 10:57:51 +09:00
Sean Stangl
0ebbc4cb5a
Fix incorrect SimpleTokenizer link in documentation ( #844 )
2020-07-01 10:26:36 +09:00
Ype Kingma
7d773abc92
Boolean query: do not combine excluded scores. ( #840 )
...
* Do nothing when combining score values of excluded scores.
* Add test case for two excluded.
* Test score for two excluded terms.
* Use TopDocs in test_boolean_query_two_excluded
2020-06-08 20:01:19 +09:00
Paul Masurel
c0f5645cd9
Move for_each functions from Scorer to Weight. ( #836 )
...
* Move for_each functions from Scorer to Weight.
* Specialized foreach / foreach_pruning for union of termscorer.
2020-06-01 11:31:18 +09:00
Paul Masurel
baf015fc57
Simplification of the segment postings seek implementation. ( #834 )
2020-05-27 08:49:47 +09:00
Paul Masurel
7275ebdf3c
Skiprefactoring skipabsolute ( #831 )
...
Simplification of the way we handle positions.
2020-05-25 09:51:23 +09:00