Skip to main content

build_query

Function build_query 

Source
pub fn build_query(
    index: &Index,
    schema: &TextSchema,
    seed_chars: usize,
    request: &TextSearchRequest,
) -> Result<Box<dyn Query>, TextIndexError>
Expand description

Build the query for request.

Empty patterns are an error rather than a match-everything query: an empty STRSTARTS pattern is true for every string, so rewriting it would produce a useless full drain.