Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update elasticsearch-setup.md #660

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/elasticsearch-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ PUT cnpmcore_packages
```json
{
"index": {
"sort.field": "package.modified",
"sort.order": "desc",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是否需要增加一个索引变更操作说明?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

索引重建是一个成本比较高的事情,尤其是修改 sort,感觉可以加个备注,有需要开启。毕竟这个排序在前端搜出来也可以自己排下。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

晚点我补充

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

索引重建是一个成本比较高的事情,尤其是修改 sort,感觉可以加个备注,有需要开启。毕竟这个排序在前端搜出来也可以自己排下。

如果分页请求,假设每页显示20条,那前端能做的排序只是针对这20条的,不是整体排序,顺序还是有问题

"analysis": {
"analyzer": {
"package": {
Expand Down
Loading