# 超链接时搜索现有主题

**URL:** https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922
**Category:** Feature
**Created:** [2019年三月29日 13:45 UTC](https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922 "2019-03-29T13:45:15Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![SMx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/smx/32/83713_2.png) [@SMx](https://meta.discourse.org/u/SMx)
#### Post date: [2019年三月29日 13:45 UTC](https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922/1 "2019-03-29T13:45:15Z")

</div>

Hi everyone, if I may give you a suggestion.

When in editor and hyperlinking a word in a post, it would be a great idea to write a word/keys and dynamically search for matching topics. Because I’m finding myself linking references to other topics.

I saw a similar feature on some wordpress plugins, to easily put anchors and relate content.

 ![20](https://global.discourse-cdn.com/meta/original/3X/d/a/dae878340b500b619477eb420b4c6fc61c0ceabe.png)

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2019年三月29日 20:54 UTC](https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922/2 "2019-03-29T20:54:55Z")

</div>

This is a duplicate of some other requests:  
🔒 [Insert internal link like Wordpress](https://meta.discourse.org/t/insert-internal-link-like-wordpress/37956)  
🔒 [Fast way to link to existing topic?](https://meta.discourse.org/t/fast-way-to-link-to-existing-topic/105603/)  
🔓 [https://meta.discourse.org/t/how-about-mentioning-topic-feature/7350](https://meta.discourse.org/t/how-about-mentioning-topic-feature/7350)

You can _kind of_ do something similar when composing by opening the header search, typing your query, using the down arrow ↓ to select the topic you want, and then hitting a to insert the link into the composer (totally recognize that it’s a power-user feature, and something in the hyperlink modal would be much more discoverable).

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2019年三月29日 20:55 UTC](https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922/3 "2019-03-29T20:55:05Z")

</div>



---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2019年十月11日 17:16 UTC](https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922/8 "2019-10-11T17:16:26Z")

</div>



---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2019年十月11日 17:16 UTC](https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922/9 "2019-10-11T17:16:53Z")

</div>

🎊 此功能仅在几分钟前被添加到核心中。

 ![screencast%202019-10-11%2013-13-15](https://global.discourse-cdn.com/meta/original/3X/b/6/b605a6b6bfb412a850aa6c8b347d73127e5792ec.gif)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2019年十月12日 21:09 UTC](https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922/10 "2019-10-12T21:09:02Z")

</div>

我不愿做那个“扫兴的人”，但我觉得分类和标签也应该出现在那里，对吧？

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2019年十月13日 23:42 UTC](https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922/11 "2019-10-13T23:42:58Z")

</div>

同样包括关闭图标/已解决图标等，就像搜索显示的那样。基本上与搜索相同，只是去掉了单行的摘要。

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2019年十月18日 12:58 UTC](https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922/13 "2019-10-18T12:58:42Z")

</div>

此功能已更新，支持分类、标签以及话题状态（如已关闭、已解决、置顶等）。

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/1/01752c294d082828f9019d49cdc994e76b5b2791.png)

---

<div class="post-metadata">

### Author: ![asirota](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/asirota/32/197298_2.png) [@asirota](https://meta.discourse.org/u/asirota)
#### Post date: [2022年十月4日 10:38 UTC](https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922/14 "2022-10-04T10:38:52Z")

</div>

这是 discourse 中最有用的功能之一，可以更轻松地在主题之间进行交叉链接。

一个问题：在此功能中实现跨站点搜索有多难？例如，搜索外部帮助文档站点，并允许搜索该内容并链接到它。

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2022年十月6日 14:04 UTC](https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922/15 "2022-10-06T14:04:48Z")

</div>

目前，这并未设置为可扩展以包含其他搜索结果。我想插件可以扩展该路由并返回其他结果，但这可能不是一个简单的更改。

---

<div class="post-metadata">

### Author: ![asirota](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/asirota/32/197298_2.png) [@asirota](https://meta.discourse.org/u/asirota)
#### Post date: [2022年十月6日 19:54 UTC](https://meta.discourse.org/t/search-existing-topics-when-hyperlinking/112922/16 "2022-10-06T19:54:23Z")

</div>

我没这么想。索引技术是否可以指向插件中的另一个站点？
