@grepvine/sdk
    Preparing search index...

    Type Alias QueryRequest

    type QueryRequest = {
        case_sensitive?: boolean;
        filter?: string;
        lines_after?: number;
        lines_before?: number;
        mode?: "regex" | "literal";
        multiline?: boolean;
        pattern: string;
        whole_word?: boolean;
    }
    Index
    case_sensitive?: boolean
    filter?: string
    lines_after?: number

    How many lines after each result to return with it, from the same document.

    lines_before?: number

    How many lines before each result to return with it, from the same document.

    mode?: "regex" | "literal"
    multiline?: boolean

    Let a match span lines. Without it a pattern matches within one line, ^ and $ mark the line's edges, and a character class never matches a line break; a pattern that contains a line break is rejected. With it the pattern is matched against the whole document, ^ and $ still mark line edges, \A and \z mark the document's edges, and a match may contain line breaks.

    pattern: string
    whole_word?: boolean