From de7098e084860cedfb3787ac3f0c615d63718a4b Mon Sep 17 00:00:00 2001 From: lucaszhu Date: Fri, 15 Mar 2024 16:03:54 +0800 Subject: [PATCH] Update elasticsearch-setup.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit setting应该以package的修改时间排序,不然行内package搜索列表就是固定排序的 --- docs/elasticsearch-setup.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/elasticsearch-setup.md b/docs/elasticsearch-setup.md index 534a8ebd..a223f809 100644 --- a/docs/elasticsearch-setup.md +++ b/docs/elasticsearch-setup.md @@ -272,6 +272,8 @@ PUT cnpmcore_packages ```json { "index": { + "sort.field": "package.modified", + "sort.order": "desc", "analysis": { "analyzer": { "package": {