Skip to content

getObsidianSearchQueryConstructor

Unofficial

Get the ObsidianSearchQuery constructor.

The class has no reachable instance until a query is compiled, so a throwaway file explorer view is created on a temporary leaf, a probe filter query is compiled through it, and the constructor is read off the result. The leaf is detached before returning.

Import:

import { getObsidianSearchQueryConstructor } from '@obsidian-typings/obsidian-catalyst-latest/implementations';

Signature:

function getObsidianSearchQueryConstructor(app: App): ConstructorBase<[app: App, query: string, caseSensitive: boolean, operators?: Record<string, unknown> | undefined], ObsidianSearchQuery>

Parameters:

ParameterTypeDescription
appAppThe app instance.

Returns: ConstructorBase<[app: App, query: string, caseSensitive: boolean, operators?: Record<string, unknown> | undefined], ObsidianSearchQuery> — The ObsidianSearchQuery constructor.


Links to this page: