HackMD
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • Note Permission
    • Read
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • Write
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • More (Comment, Invitee)
    • Publishing
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions
    • Transfer ownership
    • Delete this note
    • Template
    • Save as template
    • Insert from template
    • Export
    • Google Drive Export to Google Drive
    • Gist
    • Import
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Sharing Help
Menu
Options
Versions Transfer ownership Delete this note
Export
Google Drive Export to Google Drive Gist
Import
Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
More (Comment, Invitee)
Publishing
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
--- tags: cofacts --- # [Spec] 搜尋結果 搜尋全站結果頁,從導航列搜尋框搜尋後進入,可以搜尋可疑訊息及查核回應中內容。 對應搜尋網址為: ``` cofacts.g0v.tw/search?type=<messages|replies>&q=<search content> ``` 當 `q` 為空時,請 redirect to `/articles`。 ## 功能列表 ### Wireframe https://www.figma.com/file/ajFwwef2wqv5z4ydl0PgTZ/%5BWireframe%5D-Pages?node-id=44%3A71 ### Design https://www.figma.com/file/zpD45j8nqDB2XfA6m2QskO/Cofacts-website?node-id=432%3A2019 ### 搜尋內容 搜尋結果同時為輸入框,但不是單行 input ,而是可以多行輸入的 textarea,最高高度為十行。 選中 textarea 時, `Enter` 會進行搜尋; `Shift + Enter` 會進行換行。 Tab 可以切換搜尋的 scope ,同時url query string 中的 type 一起改變 messages or replies ### 可疑訊息 搜尋出現結果中會高亮標示搜尋內容,搜尋目標會有以下三種 - 可疑訊息內文 - 可疑訊息中連結標題 - 可疑訊息中連結總結(crawler 利用 [readability](https://github.com/mozilla/readability) 抓到的正文) 介面上同時對以上三個做關鍵字高亮標註。 #### 排序選項: 預設依照搜尋相關度 score 排序,欄位權重分別為: | Field | articles.text | articles.hyperlinks.title | articles.hyperlinks.summary | | -------- | -------- | -------- | -------- | | Weigh | 2 | 1 | 1 | #### 過濾選項: | 中文 | English | Elastic Search 定義 | | -------- | -------- | -------- | | 時間區間 | Time Range | article.createdAt | | 我查核過 | replied by me | article.articleReplies.userId == 'me' | | 主題 | Topic | https://docs.google.com/spreadsheets/d/1rw3Dzpmec-6lHgAgMPhW7ccPFzNlPp9YqpUJVxnYezw/edit#gid=484232713 | ### 查核回應 搜尋出現結果中會高亮標示搜尋內容,搜尋目標會有以下三種 - 查核回應內文 - 查核回應中連結標題 - 查核回應中連結總結(crawler 利用 [readability](https://github.com/mozilla/readability) 抓到的正文) 介面上同時對以上三個做關鍵字高亮標註。 每一個搜尋的查核回應上,顯示超連結「被使用於幾則回應」,點擊跳出 modal 顯示所有被回應在的可疑訊息的前 200 字。 #### 排序選項: 預設依照搜尋相關度 score 排序,欄位權重分別為: | Field | replies.text | replies.hyperlinks.title | replies.hyperlinks.summary | | -------- | -------- | -------- | -------- | | Weigh | 2 | 1 | 1 | #### 過濾選項: | 中文 | English | Elastic Search 定義 | | -------- | -------- | -------- | | 時間區間 | Time Range | article.createdAt | | 我查核過 | replied by me | article.articleReplies.userId == 'me' | | 回應中有「含有真實資訊」or「含有不實資訊」or「非文章」 | ... | replies.replyType == ... | ### 空白狀態 當沒有搜尋結果時,需要顯示還任何結果,請試試其他關鍵字。 ### 分頁 - 列表使用 infinite scroll 去讀取下一頁內容 ## 分析 Metrics 使用者 /

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lost their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.


Upgrade

All
  • All
  • Team
No template.

Create a template


Upgrade

Delete template

Do you really want to delete this template?

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

Sign in via GitHub

New to HackMD? Sign up

Help

  • English
  • 中文
  • 日本語

Documents

Tutorials

Book Mode Tutorial

Slide Example

YAML Metadata

Resources

Releases

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions

Versions

Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.