test: debug meilisearch
This commit is contained in:
parent
c44b261bef
commit
232ac0d94e
2 changed files with 6 additions and 0 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue