Merge branch 'master' into merge-facets

This commit is contained in:
Paul Masurel
2018-02-03 11:13:02 +09:00
2 changed files with 7 additions and 2 deletions

View File

@@ -23,12 +23,12 @@ addons:
- cmake
before_script:
- |
cargo install cargo-travis || echo "cargo-travis already installed"
export PATH=$HOME/.cargo/bin:$PATH
pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
script:
- cargo build
- cargo test
- cargo run --example simple_search
- cargo doc
after_success:
- cargo coveralls --exclude-pattern cpp/
- travis-cargo doc-upload

View File

@@ -1,5 +1,6 @@
use Score;
use DocId;
use postings::SkipResult;
use fastfield::U64FastFieldReader;
use postings::DocSet;
use query::Scorer;
@@ -39,6 +40,10 @@ where
fn size_hint(&self) -> usize {
self.postings.size_hint()
}
fn skip_next(&mut self, target: DocId) -> SkipResult {
self.postings.skip_next(target)
}
}
impl<TPostings> Scorer for TermScorer<TPostings>