mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 07:33:08 +02:00
test: debug meilisearch not being found
This commit is contained in:
parent
86db03cdd6
commit
e9fafe9b51
1 changed files with 3 additions and 5 deletions
|
@ -78,7 +78,7 @@ export class SearchService {
|
||||||
private idService: IdService,
|
private idService: IdService,
|
||||||
) {
|
) {
|
||||||
if (meilisearch) {
|
if (meilisearch) {
|
||||||
this.meilisearchNoteIndex = meilisearch.index(`${config.meilisearch!.index}---notes`);
|
this.meilisearchNoteIndex = meilisearch.index(`${this.config.meilisearch?.index}---notes`);
|
||||||
this.meilisearchNoteIndex.updateSettings({
|
this.meilisearchNoteIndex.updateSettings({
|
||||||
searchableAttributes: [
|
searchableAttributes: [
|
||||||
'text',
|
'text',
|
||||||
|
@ -103,8 +103,8 @@ export class SearchService {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.meilisearch?.scope) {
|
if (this.config.meilisearch?.scope) {
|
||||||
this.meilisearchIndexScope = config.meilisearch.scope;
|
this.meilisearchIndexScope = this.config.meilisearch.scope;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,8 +113,6 @@ export class SearchService {
|
||||||
if (note.text == null && note.cw == null) return;
|
if (note.text == null && note.cw == null) return;
|
||||||
if (!['home', 'public'].includes(note.visibility)) return;
|
if (!['home', 'public'].includes(note.visibility)) return;
|
||||||
|
|
||||||
console.error(note);
|
|
||||||
|
|
||||||
if (this.meilisearch) {
|
if (this.meilisearch) {
|
||||||
switch (this.meilisearchIndexScope) {
|
switch (this.meilisearchIndexScope) {
|
||||||
case 'global':
|
case 'global':
|
||||||
|
|
Loading…
Reference in a new issue