mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
use correct index name
This commit is contained in:
parent
94631f934e
commit
404798a01e
1 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ export const client = new Client({
|
|||
password: env.elastic.password,
|
||||
},
|
||||
})
|
||||
const INDEX_NAME = 'pages'
|
||||
|
||||
const createIndex = async (): Promise<void> => {
|
||||
// read index settings from file
|
||||
|
|
@ -22,7 +23,7 @@ const createIndex = async (): Promise<void> => {
|
|||
|
||||
// create index
|
||||
await client.indices.create({
|
||||
index: INDEX_ALIAS,
|
||||
index: INDEX_NAME,
|
||||
body: indexSettings,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue