Skip to content

Commit

Permalink
Update SearchService.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed May 2, 2023
1 parent 5c2aa34 commit fe577f6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/backend/src/core/SearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ export class SearchService {
});
this.meilisearchNoteIndex = this.meilisearchClient.index('notes');
this.meilisearchNoteIndex.updateSettings({
rankingRules: [
'words',
'typo',
'sort',
'proximity',
'attribute',
'exactness',
],
searchableAttributes: [
'text',
'cw',
Expand All @@ -100,7 +92,7 @@ export class SearchService {
}

@bindThis
public async indexNote(note: Note) {
public async indexNote(note: Note): Promise<void> {
if (this.meilisearchClient) {
this.meilisearchNoteIndex!.addDocuments([{
id: note.id,
Expand Down

1 comment on commit fe577f6

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chromatic will skip testing but you may still have to review the changes on Chromatic.

Please sign in to comment.