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-public-latest';Signature:
export interface SearchQueryTokenProperties
| Property | Type | Description | |
|---|---|---|---|
| content | string | The decoded token content, without quote or regex delimiters. | |
| pos | number | The 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: