Skip to content
Snippets Groups Projects
Verified Commit 232ac0d9 authored by Mar0xy's avatar Mar0xy
Browse files

test: debug meilisearch

parent c44b261b
No related branches found
No related tags found
No related merge requests found
......@@ -819,6 +819,8 @@ export class NoteCreateService implements OnApplicationShutdown {
private index(note: MiNote) {
if (note.text == null && note.cw == null) return;
console.error('createIndex');
this.searchService.indexNote(note);
}
......
......@@ -113,6 +113,8 @@ export class SearchService {
if (note.text == null && note.cw == null) return;
if (!['home', 'public'].includes(note.visibility)) return;
console.error('indexNote');
if (this.meilisearch) {
switch (this.meilisearchIndexScope) {
case 'global':
......@@ -129,6 +131,8 @@ export class SearchService {
}
}
console.error('meilisearchFound');
await this.meilisearchNoteIndex?.addDocuments([{
id: note.id,
createdAt: this.idService.parse(note.id).date.getTime(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment