mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
✨ Semantic search using AI embeddings https://github.com/siyuan-note/siyuan/issues/17788
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -299,6 +299,7 @@ export const updateSearchResult = (config: Config.IUILayoutTabSearchConfig, elem
|
||||
groupBy: config.group,
|
||||
orderBy: config.sort,
|
||||
page: config.page,
|
||||
pageSize: 32,
|
||||
}, (response) => {
|
||||
onRecentBlocks(response.data.blocks, config, response, focusId);
|
||||
loadingElement.classList.add("fn__none");
|
||||
|
||||
@@ -47,6 +47,7 @@ export const openSearch = async (options: {
|
||||
group: localData.group,
|
||||
sort: localData.sort,
|
||||
types: Object.assign({}, localData.types),
|
||||
subTypes: Object.assign({}, localData.subTypes),
|
||||
replaceTypes: Object.assign({}, localData.replaceTypes),
|
||||
page: options.key ? 1 : localData.page
|
||||
};
|
||||
|
||||
@@ -1358,6 +1358,7 @@ export const inputEvent = (element: Element, config: Config.IUILayoutTabSearchCo
|
||||
groupBy: config.group,
|
||||
orderBy: config.sort,
|
||||
page: config.page || 1,
|
||||
pageSize: 32,
|
||||
}, (response) => {
|
||||
const searchReqId = config.method === 4
|
||||
? window.siyuan.reqIds["/api/search/semanticSearchBlock"]
|
||||
|
||||
Reference in New Issue
Block a user