# “已保存搜索”插件的自定义

**URL:** <https://meta.discourse.org/t/customization-of-the-saved-searches-plugin/178267>\
**Category:** Marketplace\
**Created:** [2021 年2 月 3 日 12:22 UTC](https://meta.discourse.org/t/customization-of-the-saved-searches-plugin/178267 "2021-02-03T12:22:06Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Ed\_Bobkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_bobkov/32/200014_2.png) [@Ed\_Bobkov](https://meta.discourse.org/u/Ed_Bobkov)\
发布日期： [2021 年2 月 3 日 12:22 UTC](https://meta.discourse.org/t/customization-of-the-saved-searches-plugin/178267/1 "2021-02-03T12:22:06Z")

</div>

**您希望完成哪些工作？**

有一个插件：[Discourse Saved Searches](https://meta.discourse.org/t/saved-searches-plugin/67901)

需要进行的修改：

1. 主要想法是让用户能够跟踪所选组合（分类 - 子分类 - 标签）中的新帖子。当该组合中出现新主题时，应发送标准通知。因此，需要在此部分修改插件的机制。

2. 需要修改用户偏好设置页面：将文本字段更改为“分类”-“子分类”-“标签”组合，如下所示：  

3. 修改调度计划。目前它每天执行一次。我需要搜索每 1 到 15 分钟执行一次，具体取决于服务器负载。我稍后会决定。

> 我在代码中发现了这一行  
> `SEARCH_INTERVAL = 1.day`
> 
> 位置：  
> `app/jobs/scheduled/schedule_saved_searches.rb`
> 
> 如果我将其更改为  
> `SEARCH_INTERVAL = 15.minutes`
> 
> 也许这就是解决方案。

1. 将搜索列表中的行数从 5 改为 10。

> 我发现了
> 
> ```plaintext
> export default Ember.Controller.extend({
> saving: false,
> maxSavedSearches: 5,
> 
> ```
> 
> 位置：  
> `assets/javascripts/discourse/controllers/preferences-saved-searches.js.es6`

**您需要何时完成？**  
1 周

**您能为此任务提供的预算是多少（美元）？**  
我希望收到您的报价。请通过私信联系我。

---

_[View the full topic](https://meta.discourse.org/t/customization-of-the-saved-searches-plugin/178267)._
