-
Generates the list of tokens to use to find entries that match the search query, given the specified partitionId.
Declaration
Swift
public func tokenizeQuery(query: String, partitionId: String?) -> Result<[UInt32], IronOxideError>
-
Generates the list of tokens to create a search entry for
data
.This function will also return some random values in the array, 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
tokenizeQuery
, buttokenizeQuery
will always return a subset of the values returned bytokenizeData
.Declaration
Swift
public func tokenizeData(data: String, partitionId: String?) -> Result<[UInt32], IronOxideError>