search

open suspend fun search(namespace: List<String>, query: String, limit: Int = DEFAULT_SEARCH_LIMIT): List<StoreItem>

Returns the items of namespace and of the namespaces under it that query is about, the best first, at most limit of them.

This one looks for the words of query in the key and the value of the SEARCH_SCOPE items that list returns first, whatever their case: an item with more of the words comes first, and of two with as many, the one changed last. An item without any of them is left out, and so are the words of fewer than two letters. A store that finds items by meaning overrides it.