Specify primary key
This commit is contained in:
parent
856b05303b
commit
dae4f58e4c
1 changed files with 3 additions and 1 deletions
|
@ -138,7 +138,9 @@ export default hasConfig ? {
|
||||||
|
|
||||||
logger.info("Indexing notes in MeiliSearch: " + indexingIDs.join(","));
|
logger.info("Indexing notes in MeiliSearch: " + indexingIDs.join(","));
|
||||||
|
|
||||||
return posts.addDocuments(indexingBatch);
|
return posts.addDocuments(indexingBatch, {
|
||||||
|
primaryKey: "id"
|
||||||
|
});
|
||||||
},
|
},
|
||||||
serverStats: async () => {
|
serverStats: async () => {
|
||||||
let health : Health = await client.health();
|
let health : Health = await client.health();
|
||||||
|
|
Loading…
Reference in a new issue