[][src]Struct ironoxide::search::BlindIndexSearch

pub struct BlindIndexSearch { /* fields omitted */ }

Methods

impl BlindIndexSearch[src]

pub fn tokenize_query(
    &self,
    query: &str,
    partition_id: Option<&str>
) -> Result<HashSet<u32>>
[src]

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]

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.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,