Commit a3d5a784 by Sxy

fix: 更改索引

parent 55ffec4f
...@@ -19,7 +19,7 @@ router.post('/list', async (ctx, next) => { ...@@ -19,7 +19,7 @@ router.post('/list', async (ctx, next) => {
} }
console.log(JSON.stringify(query)) console.log(JSON.stringify(query))
const data = await es.search({ const data = await es.search({
index: "trademark", index: "trademarkv1",
body: query body: query
}) })
const { body: { hits: { total, hits } } } = data; const { body: { hits: { total, hits } } } = data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment