@logseq/libs
Preparing search index...
IPluginSearchServiceHooks
Interface IPluginSearchServiceHooks
interface
IPluginSearchServiceHooks
{
name
:
string
;
onBlocksChanged
:
(
graph
:
string
,
changes
:
{
added
:
SearchBlockItem
[]
;
removed
:
number
[]
}
,
)
=>
Promise
<
void
>
;
onGraphRemoved
:
(
graph
:
string
,
opts
?:
{}
)
=>
Promise
<
any
>
;
onIndiceInit
:
(
graph
:
string
)
=>
Promise
<
boolean
>
;
onIndiceReset
:
(
graph
:
string
)
=>
Promise
<
void
>
;
onQuery
:
(
graph
:
string
,
key
:
string
,
opts
:
Partial
<
{
limit
:
number
}
>
,
)
=>
Promise
<
{
blocks
?:
Partial
<
SearchBlockItem
>
[]
;
files
?:
string
[]
;
graph
:
string
;
key
:
string
;
pages
?:
string
[]
;
}
,
>
;
options
?:
Record
<
string
,
any
>
;
}
Index
Properties
name
on
Blocks
Changed
on
Graph
Removed
on
Indice
Init
on
Indice
Reset
on
Query
options?
Properties
name
name
:
string
on
Blocks
Changed
onBlocksChanged
:
(
graph
:
string
,
changes
:
{
added
:
SearchBlockItem
[]
;
removed
:
number
[]
}
,
)
=>
Promise
<
void
>
on
Graph
Removed
onGraphRemoved
:
(
graph
:
string
,
opts
?:
{}
)
=>
Promise
<
any
>
on
Indice
Init
onIndiceInit
:
(
graph
:
string
)
=>
Promise
<
boolean
>
on
Indice
Reset
onIndiceReset
:
(
graph
:
string
)
=>
Promise
<
void
>
on
Query
onQuery
:
(
graph
:
string
,
key
:
string
,
opts
:
Partial
<
{
limit
:
number
}
>
,
)
=>
Promise
<
{
blocks
?:
Partial
<
SearchBlockItem
>
[]
;
files
?:
string
[]
;
graph
:
string
;
key
:
string
;
pages
?:
string
[]
;
}
,
>
Optional
options
options
?:
Record
<
string
,
any
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
name
on
Blocks
Changed
on
Graph
Removed
on
Indice
Init
on
Indice
Reset
on
Query
options
@logseq/libs
Loading...