Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Change the default weight of newly imported favorites #209

Merged
merged 11 commits into from
Nov 20, 2021

Conversation

Z4t4r
Copy link
Contributor

@Z4t4r Z4t4r commented Nov 10, 2021

@newbe36524
Copy link
Member

我其实想的是在进行导入的时候,就对排序有一次处理。而不是在搜索的时候。
也就是最近添加的标签,被导入之后排序更前面。

@newbe36524 newbe36524 changed the title Feature/changeDefaultSort [WIP] Feature/changeDefaultSort Nov 10, 2021
@Z4t4r
Copy link
Contributor Author

Z4t4r commented Nov 12, 2021

我其实想的是在进行导入的时候,就对排序有一次处理。而不是在搜索的时候。 也就是最近添加的标签,被导入之后排序更前面。

image
这样排序可以吗

@newbe36524
Copy link
Member

newbe36524 commented Nov 12, 2021

我其实想的是在进行导入的时候,就对排序有一次处理。而不是在搜索的时候。 也就是最近添加的标签,被导入之后排序更前面。

image 这样排序可以吗

你也可以考虑 BK 有一个基准分,而这个基准分就是由于你所知的要素在 import 的时候计算出来的。这样可以简略为一个字段。然后这个基准分的计算方式稍微设计一下就可以了。那么搜索的时候,也只需要在 Score 之后,再按基准分 ThenBy 就好了。如此一来,搜索处的内容会少一点。我们也可以以后用别的方式,控制基准分的计算规则。甚至可以用用户指定策略来控制。

@Z4t4r Z4t4r changed the title [WIP] Feature/changeDefaultSort Feature/changeDefaultSort Nov 16, 2021
@@ -39,6 +39,9 @@ public interface IBkManager

[Insight(EventName = BkTitleUpdateEvent)]
Task UpdateTitleAsync(string url, string title);

[Insight(EventName = BkTitleUpdateEvent)]
Copy link
Member

Choose a reason for hiding this comment

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

错误的标记

@newbe36524 newbe36524 merged commit 4f7ffc1 into Amazing-Favorites:main Nov 20, 2021
@newbe36524 newbe36524 changed the title Feature/changeDefaultSort Change the default weight of newly imported favorites Dec 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

2 participants