pub struct InMemoryEsSync { /* private fields */ }Expand description
In-memory EsSync implementation backed by a HashMap<index, HashMap<id, EsDocument>>.
Suitable for unit tests and small in-process workloads.
search supports MatchAll, Term (exact match), Terms (membership),
Range (numeric/string bounds), and Bool (must/should/must_not).
Implementations§
Trait Implementations§
Source§impl Default for InMemoryEsSync
impl Default for InMemoryEsSync
Source§impl EsSync for InMemoryEsSync
impl EsSync for InMemoryEsSync
fn sync_to_es( &self, documents: Vec<EsDocument>, ) -> Result<EsSyncResult, EsError>
fn delete_from_es( &self, index: &str, ids: Vec<String>, ) -> Result<EsSyncResult, EsError>
fn search(&self, request: EsSearchRequest) -> Result<EsSearchResult, EsError>
Auto Trait Implementations§
impl !Freeze for InMemoryEsSync
impl RefUnwindSafe for InMemoryEsSync
impl Send for InMemoryEsSync
impl Sync for InMemoryEsSync
impl Unpin for InMemoryEsSync
impl UnsafeUnpin for InMemoryEsSync
impl UnwindSafe for InMemoryEsSync
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