PSeitz
8edcd6f958
Merge pull request #1428 from izihawa/feature/dismax
...
[feat] Implement `DisjunctionMaxQuery` and refactor `ScoreCombiner`
2022-08-22 06:15:30 -07:00
Kian-Meng Ang
014b1adc3e
cargo +nightly fmt
2022-08-17 22:33:44 +08:00
Kian-Meng Ang
84295d5b35
cargo fmt
2022-08-15 21:07:01 +08:00
Kian-Meng Ang
625bcb4877
Fix typos and markdowns
...
Found via these commands:
codespell -L crate,ser,panting,beauti,hart,ue,atleast,childs,ond,pris,hel,mot
markdownlint *.md doc/src/*.md --disable MD013 MD025 MD033 MD001 MD024 MD036 MD041 MD003
2022-08-13 18:25:47 +08:00
Pasha Podolsky
09aae134e6
[feat] Implement DisjunctionMaxQuery and refactor ScoreCombiner
2022-07-28 20:47:20 +03:00
Antoine G
e37775fe21
iff->if or if and only if ( #1298 )
...
* has_xxx is_xxx -> if, these function usualy define equivalence
xxx returns bool -> specify equivalence when appropriate
* fix doc
2022-03-02 11:00:00 +09:00
Paul Masurel
eca6628b3c
Minor refactoring ( #1266 )
2022-01-28 15:55:55 +09:00
Paul Masurel
2481c87be8
Block wand ( #856 )
2020-08-19 22:36: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
e25284bafe
Major change in the DocSet/Scorer API ( #824 )
...
- Change in the DocSet and Scorer API. (@fulmicoton).
A freshly created DocSet point directly to their first doc. A sentinel value called TERMINATED marks the end of a DocSet.
`.advance()` returns the new DocId. `Scorer::skip(target)` has been replaced by `Scorer::seek(target)` and returns the resulting DocId.
As a result, iterating through DocSet now looks as follows
```rust
let mut doc = docset.doc();
while doc != TERMINATED {
// ...
doc = docset.advance();
}
```
The change made it possible to greatly simplify a lot of the docset's code.
- Misc internal optimization and introduction of the `Scorer::for_each_pruning` function. (@fulmicoton)
2020-05-16 16:33:36 +09:00
Paul Masurel
7d6cfa58e1
[WIP] Alternative take on boosted queries ( #772 )
...
* Alternative take on boosted queries
* Fixing unit test
* Added boosting to the query grammar.
* Made BoostQuery public.
* Added support for boosting field in QueryParser
Closes #547
2020-02-19 11:04:38 +09:00
Paul Masurel
ae14022bf0
Removed use::Result. ( #771 )
2020-01-31 18:47:02 +09:00
Paul Masurel
462774b15c
Tiqb feature/2018 ( #583 )
...
* rust 2018
* Added CHANGELOG comment
2019-07-01 10:01:46 +09:00
Paul Masurel
4822940b19
Issue/36 ( #559 )
...
* Added explanation
* Explain
* Splitting weight and idf
* Added comments
Closes #36
2019-06-06 10:03:54 +09:00
Paul Masurel
4c93b096eb
Rustfmt
2019-01-29 11:45:30 +01:00
Paul Masurel
6a547b0b5f
Issue/483 ( #484 )
...
* Downcast_ref
* fixing unit test
2019-01-28 11:43:42 +01:00
Paul Masurel
06e7bd18e7
Clippy ( #421 )
...
* Cargo Format
* Clippy
* bugfix
* still clippy stuff
* clippy step 2
2018-09-15 14:56:14 +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
ffa03bad71
TermScorer does not handle deletes
2018-03-27 17:35:20 +09:00
Paul Masurel
1b94a3e382
Phrase query optimisation
2018-02-23 00:00:22 +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
5ff8123b7a
Code cleaning
2018-02-19 15:41:19 +09:00
Paul Masurel
0540ebb49e
Cargo clippy
2018-02-19 12:36:24 +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
da3d372e6e
Faster union counts
2018-02-19 10:17:16 +09:00
Paul Masurel
5dae6e6bbc
Downcast TermScorer for intersection when all legs are TermScorers
2018-02-18 10:28:43 +09:00
Paul Masurel
6c8c90d348
Removed lifetime from scorer
2018-02-18 09:12:40 +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
0300e7272b
Scoring for union.
2018-02-17 11:56:21 +09:00
Paul Masurel
1da06d867b
Using the same logic when score is enabled.
2018-02-16 17:36:33 +09:00
Paul Masurel
76e8db6ed3
blop
2018-02-16 14:57:08 +09:00
Paul Masurel
31e5580bfa
Renaming intersection / exclude
2018-02-16 11:55:56 +09:00
Paul Masurel
930d3db2f7
Integrated reqopt_scorer
2018-02-16 11:43:27 +09:00
Paul Masurel
1593e1dc6f
Added reqopt
2018-02-16 11:22:39 +09:00
Paul Masurel
c4125bda59
Backmerging master
2018-02-12 11:08:57 +09:00
Paul Masurel
1fc7afa90a
Issue/range query ( #242 )
...
BitSet and RangeQuery
2018-02-05 09:33:25 +09:00
Paul Masurel
fb5476d5de
Query optimization: phrase query + union
2018-02-02 16:39:17 +09:00
Paul Masurel
dd8332c327
Added disabling scoring
2018-02-02 12:11:56 +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
f8710bd4b0
Format
2017-08-28 18:22:41 +09:00
Ashley Mannix
2b2703cf51
run cargo fmt
2017-05-29 18:29:39 +09:00
Paul Masurel
4c8f9742f8
format
2017-05-15 22:30:18 +09:00
Paul Masurel
f2df0bf0e9
issue/50 Small formatting change.
2016-11-04 00:11:46 +09:00
Paul Masurel
6229a92730
issue/50 Removed SegmentPostingsTestFactory for just using VecPostings
2016-11-02 17:58:20 +09:00