# "Search" - I'm not getting something

**URL:** https://discourse.nodered.org/t/search-im-not-getting-something/46678
**Category:** General
**Created:** [3 June 2021 23:36 UTC](https://discourse.nodered.org/t/search-im-not-getting-something/46678 "2021-06-03T23:36:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [3 June 2021 23:36 UTC](https://discourse.nodered.org/t/search-im-not-getting-something/46678/1 "2021-06-03T23:36:48Z")

</div>

Hey folks.

I am going through replacing a node with another one which is better suited.

I search for it and the list of nodes is show.

To keep things simple, I click on the top one, replace and repeat the search.

Ok. So far so good.

Then this happens.

 ![Screenshot from 2021-06-04 09-30-27](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/f/6fc6b2db0d8c8ac2b9a0b3d29bc58449c4b4e087.png)

I've searched for `simple` and it has pointed me to this `function` node.

Ok, let's look and see what is happening.

 ![Screenshot from 2021-06-04 09-30-30](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/0/502535acf73db93e669a83539fbaaba5712d04ab.png)

 ![Screenshot from 2021-06-04 09-30-34](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/d/3dd46639eee09944088450cea425586b265623b6.png)

Where is it getting the match for `simple`?

---

<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: [4 June 2021 06:42 UTC](https://discourse.nodered.org/t/search-im-not-getting-something/46678/2 "2021-06-04T06:42:15Z")

</div>

Can you export that function node and share it here so we can get a proper look at it?

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [4 June 2021 23:19 UTC](https://discourse.nodered.org/t/search-im-not-getting-something/46678/3 "2021-06-04T23:19:09Z")

</div>

Here it is.

Alas I think I can see what is causing the problem.

```auto
[{"id":"12257f9.cd4f78","type":"function","z":"eff5d6e6.236338","name":"MQTT in cheat","func":"var newMsg = msg.payload; \nreturn newMsg;","outputs":1,"noerr":0,"x":380,"y":1470,"wires":[["a18509f4.ec6d58"]],"info":"This node takes the *modified* message and puts it back to what it was on the other machine before it was sent via MQTT.\nSimple.\n2 lines of code."}]

```

Bottom line.... Kinda obvious.

Sorry for _wasting your time_.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [4 June 2021 23:51 UTC](https://discourse.nodered.org/t/search-im-not-getting-something/46678/4 "2021-06-04T23:51:37Z")

</div>

(Sorry I forgot to "solved" it)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [18 June 2021 23:51 UTC](https://discourse.nodered.org/t/search-im-not-getting-something/46678/5 "2021-06-18T23:51:47Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
