[−][src]Struct ironoxide::search::BlindIndexSearch
Implementations
impl BlindIndexSearch
[src]
pub fn tokenize_query(
&self,
query: &str,
partition_id: Option<&str>
) -> Result<HashSet<u32>>
[src]
&self,
query: &str,
partition_id: Option<&str>
) -> Result<HashSet<u32>>
Generate the list of tokens to use to find entries that match the search query, given the specified partition_id. query - The string you want to tokenize and hash partition_id - An extra string you want to include in every hash, this allows 2 queries with different partition_ids to produce a different set of tokens for the same query
pub fn tokenize_data(
&self,
data: &str,
partition_id: Option<&str>
) -> Result<HashSet<u32>>
[src]
&self,
data: &str,
partition_id: Option<&str>
) -> Result<HashSet<u32>>
Generate the list of tokens to create a search entry for data
. This function will also return some random values in the HashSet, which will make
it harder for someone to know what the input was. Because of this, calling this function will not be the same as tokenize_query
, but tokenize_query
will always
return a subset of the values returned by tokenize_data
.
data - The string you want to tokenize and hash partition_id - An extra string you want to include in every hash, this allows 2 queries with different partition_ids to produce a different set of tokens for the same data
Trait Implementations
impl Debug for BlindIndexSearch
[src]
impl TryFrom<&'_ [u8]> for BlindIndexSearch
[src]
type Error = IronOxideErr
The type returned in the event of a conversion error.
pub fn try_from(bytes: &[u8]) -> Result<BlindIndexSearch>
[src]
Auto Trait Implementations
impl RefUnwindSafe for BlindIndexSearch
[src]
impl Send for BlindIndexSearch
[src]
impl Sync for BlindIndexSearch
[src]
impl Unpin for BlindIndexSearch
[src]
impl UnwindSafe for BlindIndexSearch
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,