Commit efe6fcb4 by Sxy

排序

parent f33690aa
......@@ -17,10 +17,13 @@ router.post('/list', async (ctx, next) => {
},
"from": (page - 1) * limit,
"size": limit,
"sort": [
"_score", "nospace"
]
}
console.log(JSON.stringify(query))
const data = await es.search({
index: "trademarkv3",
index: "trademarkv4",
body: query
})
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