Bruce Mitchener
44e03791f9
Fix warnings when doc'ing private items. ( #1579 )
...
This also fixes a couple of typos, but plenty remain!
2022-10-03 14:24:00 +09:00
Bruce Mitchener
a24ae8d924
clippy: Fix needless-borrow warnings. ( #1581 )
...
These show on nightly clippy.
2022-10-03 14:15:09 +09:00
Pascal Seitz
0e94213af0
validate index settings on create
2022-09-29 18:58:09 +08:00
trinity-1686a
a86b0df6f4
Add query matching terms in a set ( #1539 )
2022-09-28 09:43:18 +02:00
Bruce Mitchener
cb252a42af
docs: "associated to" -> "associated with" ( #1557 )
...
This reads better this way.
2022-09-26 20:23:37 +09:00
Bruce Mitchener
cf02e32578
Improvements to doc linking, grammar, etc.
2022-09-19 18:10:22 +07:00
Bruce Mitchener
6a88ac3fe3
Documentation improvements.
...
Fix some linking, some grammar, some typos, etc.
2022-09-18 18:05:37 +07:00
Paul Masurel
21519788ea
Build fix ( #1470 )
2022-08-24 07:16:38 +09:00
Shikhar Bhushan
4c6c6e4a9c
ConstScoreQuery (#1463 )
2022-08-24 06:37:34 +09:00
Adam Reichold
71ab482720
RFC: Use a more general but still object-safe signature for Query::query_terms. ( #1468 )
...
* Use a more general but still object-safe signature for Query::query_terms.
* Further constraint the generalized Query::query_terms signature to allow extracting references to terms.
2022-08-24 06:34:07 +09:00
PSeitz
8edcd6f958
Merge pull request #1428 from izihawa/feature/dismax
...
[feat] Implement `DisjunctionMaxQuery` and refactor `ScoreCombiner`
2022-08-22 06:15:30 -07:00
Pasha Podolsky
f50700835d
[fix] Fn -> FnOnce
2022-08-22 15:57:30 +03:00
Paul Masurel
4a3169011d
clippy ( #1452 )
2022-08-20 20:01:33 +09:00
Kanji Yomoda
0c634c5bc6
Add missing seek to RequiredOptionalScorer ( #1442 )
2022-08-19 18:08:52 +09: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
71041b2314
[fix] Fix bench
2022-07-28 21:36:28 +03:00
Pasha Podolsky
09aae134e6
[feat] Implement DisjunctionMaxQuery and refactor ScoreCombiner
2022-07-28 20:47:20 +03:00
PSeitz
23fe73a6c0
remove searcher pool and make Searcher cloneable ( #1411 )
...
* remove searcher pool and make Searcher cloneable
closes #1410
* use SearcherInner in InnerIndexReader
2022-07-12 18:07:48 +09:00
Evance Soumaoro
a4be239d38
Updated DateTime to hold timestamp in microseconds, while making date field precision configurable ( #1396 )
2022-07-12 10:04:28 +09:00
Antoine G
437cd350a2
Add support for phrase slop in query language ( #1393 )
...
Closes #1390
2022-06-28 13:55:47 +09:00
Antoine G
11e4225f23
doc fix ( #1391 )
...
Documentation fix.
2022-06-21 15:53:33 +09:00
boraarslan
811b91ecb3
Edit and add tests
2022-06-07 10:09:37 +03:00
boraarslan
2981e6c1df
First commit
2022-06-07 10:09:37 +03:00
Ryan Russell
b33b4c0092
Fix various occurrence var names and references ( #1385 )
...
Thank you Ryan!
Signed-off-by: Ryan Russell <git@ryanrussell.org >
2022-06-07 11:08:19 +09:00
Paul Masurel
71c4393ec4
Clippy
2022-05-23 10:20:37 +09:00
Antoine G
3223bdf254
Refactorize PhraseScorer::compute_phrase_match ( #1364 )
...
* Refactorize PhraseScorer::compute_phrase_match
* implem optim for slop
2022-05-13 09:57:21 +09:00
PSeitz
58c0cb5fc4
Merge pull request #1357 from saroh/1302-json-term-writer-API
...
Expose helpers to generate json field writer terms
2022-05-10 11:02:05 +08:00
saroh
0ade871126
rename constructor to be more explicit
2022-05-06 13:29:07 +02:00
Paul Masurel
ed26552296
Minor changes in query parsing for quickwit#1334. ( #1356 )
...
Quickwit's still heavily relies on generating field names
containing a '.' for nested object, yet allows for
user defined field names to contain a dot.
In order to reuse tantivy query parser, we will end up
using quickwit field names directly into tantivy.
Only '.' will be escaped.
This PR makes minor changes in how tantivy query parser parses
a field name and resolves it to a field.
Some of the new edge case behavior is hacky.
Closes #1355
2022-05-06 13:20:10 +09:00
Saroh
65d129afbd
better function names
2022-05-05 10:12:28 +02:00
Saroh
14cb66ee00
move helper to indexer module
2022-05-04 18:01:57 +02:00
Saroh
9e38343352
expose helpers for json field writer manipulation
...
closes #1302
2022-05-04 18:01:45 +02:00
Pascal Seitz
b5b16948b0
print whole query on syntax error
2022-04-27 12:48:30 +08:00
PSeitz
038d234ff1
Merge pull request #1347 from quickwit-oss/query_parser_error
...
fix query parser error field not found
2022-04-26 07:01:48 +02:00
Pascal Seitz
824d6f96fe
return query on parse error
2022-04-22 16:11:36 +08:00
Pascal Seitz
7cf821bac0
fix query parser error field not found
2022-04-22 12:40:00 +08:00
Pascal Seitz
706fbd6886
fix DateTime naming, fix docs, cleanup
2022-04-13 13:01:00 +08:00
Uwe Klotz
125707dbe0
Replace chrono with time ( #1307 )
...
For date values `chrono` has been replaced with `time`
- The `time` crate is re-exported as `tantivy::time` instead of `tantivy::chrono`.
- The type alias `tantivy::DateTime` has been removed.
- `Value::Date` wraps `time::PrimitiveDateTime` without time zone information.
- Internally date/time values are stored as seconds since UNIX epoch in UTC.
- Converting a `time::OffsetDateTime` to `Value::Date` implicitly converts the value into UTC.
If this is not desired do the time zone conversion yourself and use `time::PrimitiveDateTime`
directly instead.
Closes #1304
2022-03-21 10:50:19 +09:00
Paul Masurel
46d5de920d
Removes all usage of block_on, and use a oneshot channel instead. ( #1315 )
...
* Removes all usage of block_on, and use a oneshot channel instead.
Calling `block_on` panics in certain context.
For instance, it panics when it is called in a the context of another
call to block.
Using it in tantivy is unnecessary. We replace it by a thin wrapper
around a oneshot channel that supports both async/sync.
* Removing needless uses of async in the API.
Co-authored-by: PSeitz <PSeitz@users.noreply.github.com >
2022-03-18 16:54:58 +09:00
PSeitz
42283f9e91
fix error message UnknownTokenizer ( #1308 )
...
closes #1303
2022-03-14 13:54:47 +09:00
PSeitz
b105bf72e1
use defaults in meta.json ( #1310 )
...
This change allows to have unset fields in meta.json and fall back to their defaults
Currently it is required to explicitly put e.g. fieldnorms: false
2022-03-14 13:54:06 +09:00
Halvor Fladsrud Bø
cedced5bb0
Slop support for phrase queries ( #1241 )
...
Closes #1068
2022-03-07 15:29:18 +09:00
PSeitz
4b62f7907d
Merge pull request #1297 from PSeitz/fix_clippy
...
fix clippy issues
2022-03-02 10:11:56 +01: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
Pascal Seitz
091b668624
fix clippy issues
2022-03-01 08:58:51 +01:00
Paul Masurel
2ead010c83
Tantivy quickwit ( #1293 )
...
* Added sstable and enabling it by default, and parallel boolean query.
* Added async API for FileSlice.
* Added async get_doc
* Reduce blocksize to 32_000
* Added debug logs
Quickwit specific feature a hidden behind the quickwit feature flag.
2022-02-25 17:32:49 +09:00
Paul Masurel
d7b46d2137
Added JSON Type ( #1270 )
...
- Removed useless copy when ingesting JSON.
- Bugfix in phrase query with a missing field norms.
- Disabled range query on default fields
Closes #1251
2022-02-24 16:25:22 +09:00
Paul Masurel
2069e3e52b
Fixing clippy comments
2022-02-01 10:24:05 +09:00