Skip to content

SearchQueryToken

Unofficial

A token emitted by core Search’s tokenizer. Content is decoded; pos is an offset in the raw query.

Import:

import type { SearchQueryToken } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface SearchQueryToken

Properties

PropertyTypeDescription
contentstringThe decoded token content, without quote or regex delimiters.
posnumberThe starting UTF-16 offset in the raw query.
type'bracket' | 'colon' | 'empty' | 'false' | 'greaterthan' | 'lessthan' | 'not' | 'or' | 'parenthesis' | 'quote' | 'regex' | 'text' | 'true'The token category. Uppercase AND is ordinary text.

Links to this page: