# Extending the search box

**URL:** <https://discourse.nodered.org/t/extending-the-search-box/4388>\
**Category:** General\
**Created:** [29 October 2018 15:03 UTC](https://discourse.nodered.org/t/extending-the-search-box/4388 "2018-10-29T15:03:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![malinthasa](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@malinthasa](https://discourse.nodered.org/u/malinthasa)\
**Post date:** [29 October 2018 15:03 UTC](https://discourse.nodered.org/t/extending-the-search-box/4388/1 "2018-10-29T15:03:18Z")

</div>

Hi,

We can use the default search box (filter nodes) for searching installed nodes by their name. I want to extend the default search functionality to look-up nodes not only by name but also the description (other information which is not in the node name but comes with the node - this information is already in the node help) of the nodes. I have following questions.

(Same kind of search functionality in Node-Red node [library](https://flows.nodered.org/?type=node&num_pages=1) which uses the keywords in the description)

1. Is this possible to do, if so how?
2. If I am doing this kind of extension, what is the method to incorporate it with node-red? Ex: Can I add my customization on top of node-red as an extension/plugin?

Regards,  
Malintha

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [29 October 2018 16:00 UTC](https://discourse.nodered.org/t/extending-the-search-box/4388/2 "2018-10-29T16:00:43Z")

</div>

Hi @malinthasa

which search box are you referring to? The one on the Nodes tab of the 'manage palette' dialog?

There is no api for you to access to change that behaviour - it's hardcoded into the editor. That sort of change would need to be made in the core. But it sounds a useful addition, so I'm sure we'd welcome such a contribution. Which additional info specifically would you want to include in the search index? Within the editor, the only piece we don't currently index is the node help - anything else from the node's module (such as its README.md or package.json metadata) isn't available.

Nick

---

<div class="post-metadata">

**Author:** ![malinthasa](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@malinthasa](https://discourse.nodered.org/u/malinthasa)\
**Post date:** [29 October 2018 17:00 UTC](https://discourse.nodered.org/t/extending-the-search-box/4388/3 "2018-10-29T17:00:21Z")

</div>

Hi Nick,

I am referring to the search box which is used to filter nodes. (which is in the top left corner of the editor).  
 ![Screenshot%20from%202018-10-29%2017-48-03](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/6237707e2bda54a616b99cb514f7f55efd8eba7a.png)

I have included some keywords in the node help which are not in the node name. I want users to find nodes using those keywords using the search box.

Example: I have installed a custom node named ' **countdown**' which has following content in it's help

![Screenshot%20from%202018-10-29%2017-55-52](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/760582fa7b1a3ba3ec543fe6d354aae0cd9e2052.png)

and I want to display **countdown** node when a user enters TimeData in ' **filter nodes**' search box.

Regards,  
Malintha

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [29 October 2018 21:08 UTC](https://discourse.nodered.org/t/extending-the-search-box/4388/4 "2018-10-29T21:08:04Z")

</div>

sounds interesting, though I think we would need to be careful with help as there may be may words that appear in many help pages (like input for example, or maybe debug or...) which may then hide the actual result form the names you want - so maybe it needs to be optional or the results sorted or... maybe needs some thought.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [29 October 2018 21:19 UTC](https://discourse.nodered.org/t/extending-the-search-box/4388/5 "2018-10-29T21:19:09Z")

</div>

Perhaps allowing a tag list would meet the needs? It would be another thing for node authors to remember but it would be backwards compatible and fairly straight-forwards I would think.

For example, there are some nodes that I always forget the name of if I've been away from Node-RED for a little while and it would be great to have some synonyms defined via tags.
