pub struct SearchService;Expand description
Search service.
Implementations§
Source§impl SearchService
impl SearchService
pub fn search( conn: &Connection, query: &SearchQuery, ) -> SqliteResult<Vec<SearchResult>>
pub fn group_by_date(results: Vec<SearchResult>) -> Vec<SearchResultGroup>
Sourcepub fn search_unified(
conn: &Connection,
raw_query: &str,
) -> SqliteResult<UnifiedSearchResults>
pub fn search_unified( conn: &Connection, raw_query: &str, ) -> SqliteResult<UnifiedSearchResults>
Run a unified multi-entity search.
The query string is parsed once via QueryParser; people/album/place
matches use simple substring LIKE. Photos use the existing
QueryParser-based filter.
pub fn search_unified_with_semantic( conn: &Connection, raw_query: &str, semantic_photo_ids: Vec<i64>, ) -> SqliteResult<UnifiedSearchResults>
Auto Trait Implementations§
impl Freeze for SearchService
impl RefUnwindSafe for SearchService
impl Send for SearchService
impl Sync for SearchService
impl Unpin for SearchService
impl UnsafeUnpin for SearchService
impl UnwindSafe for SearchService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more