diff options
author | Paul Masurel <paul.masurel@gmail.com> | 2017-05-04 17:13:14 +0800 |
---|---|---|
committer | Paul Masurel <paul.masurel@gmail.com> | 2017-05-04 17:13:14 +0800 |
commit | 83263eabbb8a81ffbd78c3069de2f2186db2d25a (patch) | |
tree | 833fbdb98ef3b3d0a18e3ee5d1c4529be221eafc /src/core | |
parent | 5cb5c9a8f21aad4a3cc0a10462be49f3aa66e714 (diff) |
issues/65 Updated changelog added some doc.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/searcher.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/searcher.rs b/src/core/searcher.rs index 839e001..fe54d1a 100644 --- a/src/core/searcher.rs +++ b/src/core/searcher.rs @@ -68,8 +68,8 @@ impl Searcher { } /// Returns the segment_reader associated with the given segment_ordinal - pub fn segment_reader(&self, segment_ord: usize) -> &SegmentReader { - &self.segment_readers[segment_ord] + pub fn segment_reader(&self, segment_ord: u32) -> &SegmentReader { + &self.segment_readers[segment_ord as usize] } /// Runs a query on the segment readers wrapped by the searcher @@ -78,6 +78,7 @@ impl Searcher { } } + impl From<Vec<SegmentReader>> for Searcher { fn from(segment_readers: Vec<SegmentReader>) -> Searcher { Searcher { |