Age | Commit message (Collapse) | Author |
|
* 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
|
|
* fmt
* Fixing bench compilation
|
|
|
|
|
|
|
|
Broke the reference loop to make sure that the watch_router can
be dropped, and the thread exits.
|
|
|
|
|
|
* 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
|
|
u64-based fields are actually 4+8=12 bytes long
|
|
Union missdocumented as doing an intersection
Union and Intersection can hold more than 2 DocSets
|
|
Closes #649
Spotted by @imor
|
|
* Using FnvHashMap for mapping UnorderedTermId to TermOrdinal. Fixes #507
* Fixed cargo fmt errors
|
|
|
|
|
|
|
|
Detail on https://github.com/rust-lang/regex/pull/613
|
|
|
|
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>
|
|
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
|
|
|
|
|
|
Update import statements to edition 2018, including removing
`extern crate` and `#[macro_use]`. Alphabetize the statements.
|
|
|
|
|
|
Closes #629
|
|
Schema.convert_named_doc
Better Debug string for Terms and TermQueries
|
|
* 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
|
|
* 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
|
|
|
|
|
|
fix #620
|
|
|
|
|
|
|
|
* Bump crossbeam
* Warnings--
* Remove outdated tempdir
|
|
|
|
* 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
|
|
Prepare for release 0.10.1
|
|
fix #580
|
|
* 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
|
|
|
|
* Single thread tests
* Isolating fail tests into a different binary
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|