summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2019-10-07Add a doctest to BooleanQuery (#630)HEADmasterpetr-tik
* Add a doctest to BooleanQuery Closes #446 Mark a function that is only used in tests to be compiled for tests only Fix doc-comments in a couple of related files * Minor corrections remove whitespace, fix typos, add explicit dyn marker * WIP: BooleanQuery doc test Trying to nest several BooleanQueries together * Addressed old review rust 2018 edition + make function available to everyone * Box the previous query to resolve the type error * Rework wording in DocAdress document strings * Reworded and restructured the docstring
2019-10-04Fix bench (#663)Paul Masurel
* fmt * Fixing bench compilation
2019-10-04fmt (#661)Paul Masurel
2019-10-01Waiting potentially longer on watchPaul Masurel
2019-10-01Merge branch 'hotfix-656'Paul Masurel
2019-10-01Address #656Paul Masurel
Broke the reference loop to make sure that the watch_router can be dropped, and the thread exits.
2019-09-26Removed enum variants on type aliasPaul Masurel
2019-09-18Fixing the issue associated with the Regex performance changePaul Masurel
2019-09-18add checksum check in ManagedDirectory (#605)fdb-hiroshima
* add checksum check in ManagedDirectory fix #400 * flush after writing checksum * don't checksum atomic file access and clone managed_paths * implement a footer storing metadata about a file this is more of a poc, it require some refactoring into multiple files `terminate(self)` is implemented, but not used anywhere yet * address comments and simplify things with new contract use BitOrder for integer to raw byte conversion consider atomic write imply atomic read, which might not actually be true use some indirection to have a boxable terminating writer * implement TerminatingWrite and make terminate() be called where it should add dependancy to drop_bomb to help find where terminate() should be called implement TerminatingWrite for wrapper writers make tests pass /!\ some tests seems to pass where they shouldn't * remove usage of drop_bomb * fmt * add test for checksum * address some review comments * update changelog * fmt
2019-09-11fix Term documentation (#655)fdb-hiroshima
u64-based fields are actually 4+8=12 bytes long
2019-09-11fix documentation error (#654)fdb-hiroshima
Union missdocumented as doing an intersection Union and Intersection can hold more than 2 DocSets
2019-09-09Remove unnecessary duplicate methods (#650)petr-tik
Closes #649 Spotted by @imor
2019-09-07Using FnvHashMap for mapping UnorderedTermId to TermOrdinal. Fixes #507 (#647)Raminder Singh
* Using FnvHashMap for mapping UnorderedTermId to TermOrdinal. Fixes #507 * Fixed cargo fmt errors
2019-09-07Occur debug interface (#648)Paul Masurel
2019-09-07Fixed clippy warning: unneeded return statement (#646)Raminder Singh
2019-09-05Moving queyr grammar to a different crate. (#645)Paul Masurel
2019-09-04Lighter regex dependency. (#644)Paul Masurel
Detail on https://github.com/rust-lang/regex/pull/613
2019-09-03Small code clean upPaul Masurel
2019-09-03Update once_cell requirement from 0.2 to 1.0 (#643)dependabot-preview[bot]
Updates the requirements on [once_cell](https://github.com/matklad/once_cell) to permit the latest version. - [Release notes](https://github.com/matklad/once_cell/releases) - [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md) - [Commits](https://github.com/matklad/once_cell/compare/v0.2.0...v1.0.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-22RegexQuery performance: make it possible to cache Regexes - remastered by ↵Paul Masurel
fulmicoton (Closes #639) (#641) * small docs cleanup * only compile a regex once per RegexQuery Building a `Regex` is an expensive operation. Users of `RegexQuery` need to cache and reuse regexes when searching across multiple fields. This is the first step towards allowing that: we can store the `Regex` directly in the `RegexQuery`, instead of the string pattern. * RegexQuery: account for possible failure in the constructor When building a regex from a str pattern, we have to account for the possibility that the pattern is invalid. Before the previous commit, the failure would happen in the `specialized_weight` method. Now that we store a compiled `Regex` in `RegexQuery`, `specialized_weight` doesn't fail anymore, and we can fail early while constructing `RegexQuery` if the pattern is invalid. This is a breaking change for users of `RegexQuery::new`. * add RegexQuery::from_regex method This builds a `RegexQuery` from an already compiled `Regex`. The use of `Into<Arc<Regex>>` is to allow the caller to either simply pass a `Regex`, or an `Arc<Regex>`, in case it needs to be cached and shared on the caller's side. * Using an Arc in AutomatonWeight Closes #639
2019-08-19Expose new segment meta from Index (#637)Paul Masurel
2019-08-19Added segmentid_from_string (#636)Paul Masurel
2019-08-19Update import statements in examples, doctests (#633)Joshua Dutton
Update import statements to edition 2018, including removing `extern crate` and `#[macro_use]`. Alphabetize the statements.
2019-08-19Fix trait object in doctest (#635)Joshua Dutton
2019-08-19Fixing typos (#634)Joshua Dutton
2019-08-15Introducing a wrapper struct instead of Boxed<BoxableTokenizer> (#631)Paul Masurel
Closes #629
2019-08-14Change for tantivy-pyPaul Masurel
Schema.convert_named_doc Better Debug string for Terms and TermQueries
2019-08-12Added cargo-fmt to CI runs (#627)petr-tik
* Added cargo-fmt to CI runs Closes #625 * Remove fmt from appveyor builds Windows seems to have issues with install components through rustup. Formatting should be equally informative regardless of the OS, so best to keep it in Linux on Travis
2019-08-12Elastic unbounded range query (#624)petr-tik
* Tidy up fmt remove unneccessary -> Result<()> followed by run.unwrap() in a test * Adding support for elasticsearch-style unbounded queries Extend the UserInputBound to include Unbounded, so we can reuse formatting and internal query format * Still working on elastic-style range queries Fixes #498 Merge the elastic_range into range Reformat to make code easier to follow, use optional() macro to return Some * Fixed bugs Made the range parser insensitive to whitespace between the ":" and the range. Removed optional parsing of field. Added a unit test for the range parser. Derived PartialEq to compare the results of parsing as structs, instead of strings. Found a bug with that unit test - "*}" was parsed as an UserInputBound::Exclusive, instead of UserInputBound::Unbounded. Added an early detection-and-return for * in the original range parser * Correct failing test Assume that we will use "{*" for Unbounded ranges * Add a note in the changelog cargo-fmt * Moved parenthesis to a newline to make nested if-else more visible
2019-08-11Added Schema.from_named_docPaul Masurel
2019-08-08WTF is this file doing here (#622)Paul Masurel
2019-08-08fix parsing neg float in range query (#621)fdb-hiroshima
fix #620
2019-08-08cargo fmtPaul Masurel
2019-08-08Various bugfix in the query parser (#619)Paul Masurel
2019-08-06Trying to fix #609 (#616)Paul Masurel
2019-08-05Bump deps (#613)Kornel
* Bump crossbeam * Warnings-- * Remove outdated tempdir
2019-08-01Changes required for python binding (#610)Paul Masurel
2019-07-31Replace unwrap with match and proper Error handling (#606)petr-tik
* Replace unwrap with match and proper Error handling * Replaced 'magic' values with a documented variable Didn't like the unexplained 0..3 range, thought it was best as a variable Calculating Levenshtein distance is expensive, so best explain why we should keep it low
2019-07-30Closes #544. (#607)Paul Masurel
Prepare for release 0.10.1
2019-07-27add to_path for Facet (#604)fdb-hiroshima
fix #580
2019-07-27add support for float (#603)fdb-hiroshima
* add basic support for float as for i64, they are mapped to u64 for indexing query parser don't work yet * Update value.rs * implement support for float in query parser * Update README.md
2019-07-22Added phrase query tests (#601)Paul Masurel
2019-07-22Failrs (#600)Paul Masurel
* Single thread tests * Isolating fail tests into a different binary
2019-07-21Made the SegmentMeta inventory out of static.Paul Masurel
2019-07-20Small code cleaningPaul Masurel
2019-07-18Merge branch 'master' of github.com:tantivy-search/tantivyPaul Masurel
2019-07-18Disabling generating docsPaul Masurel
2019-07-18Disabling generating docsPaul Masurel
2019-07-17Using instead of u64.Paul Masurel
2019-07-17Small refactoringPaul Masurel