Skip to content

Commit

Permalink
fix filterable attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
kounoike committed Apr 28, 2023
1 parent 7df1ab1 commit 88c7f3a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions meili/meilisearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,17 @@ func (m *MeiliSearchClient) UpdatePrograms(programs []db.ListProgramWithMessageA
}

func (m *MeiliSearchClient) DeleteProgramIndex() error {
_, err := m.client.DeleteIndex(programIndexName)
return err
if _, err := m.client.DeleteIndex(programIndexName); err != nil {
return err
}
return m.Init()
}

func (m *MeiliSearchClient) DeleteRecordedFileIndex() error {
_, err := m.client.DeleteIndex(recordedFileIndexName)
return err
if _, err := m.client.DeleteIndex(recordedFileIndexName); err != nil {
return err
}
return m.Init()
}

func (m *MeiliSearchClient) UpdateRecordedFiles(rows []db.ListRecordedFilesRow) error {
Expand Down

0 comments on commit 88c7f3a

Please sign in to comment.