Discourse Saved Searches

:discourse2: Summary Discourse Saved Searches allows users to save searches and be notified when any new topics or posts match the search criteria.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-saved-searches
:open_book: Install Guide How to install plugins in Discourse

Features

Following from the new watched words feature that takes action on bad words, here’s a plugin that lets people save a list of searches and get notified if any new topics and posts are created that match their searches.

After installing the plugin, enable it and choose the groups allowed to create saved searches.

There’s a new section in your preferences where you can define your list of searches.

Once a day, your searches will be performed. If there are new results that you haven’t already seen, you’ll get a private message with a list of links to the posts. If you want to get an email notification, be sure you’ve enabled “Send me an email when someone messages me” in your email settings.

One private message will be created for each of your search terms. Notification of new results will be posted as replies in the corresponding topic.

We’ve enabled it on meta for minimum trust level 2, so give it a try.

:bulb: Tip

The ‘saved searches’ in this plugin work exactly the same as a regular discourse search. So you can always try out a particular search by clicking :mag: in the top right of your forum, and pasting the search.

In general, searching for keywords will check in the topic title, and in the post/topic body.

Note that searches for multiple word phrases must be in double quotes “like this”.

Settings

Name Description
saved searches enabled Allow users to have saved searches
saved searches allowed groups Allow users in these groups to have saved searches
max saved searches Maximum number of saved searches

:discourse2: Hosted by us? This plugin is available on our Enterprise plan Saved Search | Discourse - Civilized Discussion

Last edited by @JammyDodger 2024-06-03T21:56:41Z

Check documentPerform check on document:
52개의 좋아요

좋은 플러그인입니다. 조건 필터와 설명을 사용하여 각 검색 작업을 거래(Del) 또는 새 주제로 변환할 수 있습니다.

1개의 좋아요

주님! 제가 찾던 바로 그거였어요 :smiley: 사랑해요!

2개의 좋아요

이 플러그인은 보고하는 일치하는 결과의 수를 제한하나요?

저장된 검색의 수에 대한 설정(기본값 5)은 알고 있습니다. 하지만 제 질문은 각 저장된 검색에 대한 결과 수에 관한 것입니다.

지금까지 발견한 보고서는 최대 5개의 결과까지만 포함하고 있는데, 이는 다소 짧은 것 같습니다.

만약 제한이 있다면, 이는 일반 검색이 반환하는 기본 검색 결과 수에서 비롯된 것일까요? 이 플러그인의 일반적인 사용 사례 중 하나는 특정 항목에 대한 참조를 놓치지 않도록 하는 것입니다. 하지만 제한이 있고 추가 매치가 더 있다는 언급도 없다면, 저장된 검색의 결과를 놓칠 가능성이 높습니다.

추가: 5개 이상의 결과가 있는 경우, 해당 용어와 일치하는 시간 범위를 포함하여 검색 페이지로 연결되는 “더 보기” 링크를 검색 결과에 추가할 수 있을 것입니다.

1개의 좋아요

훌륭한 기능인데, 이걸 Discourse 코어에 통합할 계획이 있나요?

1개의 좋아요

/sidekiq/metrics?substr=&period=8h를 통해 확인해 본 결과, 이 플러그인이 가장 많은 시간을 소비하는 작업인 경우가 많았습니다. 총 실행 시간이 3,000초에서 15,000초(8시간 창에서 1~4시간!)에 달합니다. 그런데 이 플러그인은 거의 사용되지 않습니다:

SELECT
  COUNT(*) AS total_saved_queries,
  COUNT(DISTINCT user_id) AS unique_users
FROM saved_searches;

 total_saved_queries | unique_users 
---------------------+--------------
                  80 |           24

포럼은 꽤 활발한 편입니다(일일 활성 사용자 약 1,200명, 일일 게시글 약 2,300개) 하지만, 저장된 쿼리의 사용량에 비해 플러그인의 리소스 사용량이 매우 불균형해 보입니다.

이 플러그인을 사용 중인 분들 중 이런 현상을 경험하신 분이 계신가요?