# SimpleSearch - displaying a search error

**URL:** <https://community.modx.com/t/simplesearch-displaying-a-search-error/2133>\
**Category:** Extras\
**Created:** [January 15, 2020, 4:23am UTC](https://community.modx.com/t/simplesearch-displaying-a-search-error/2133 "2020-01-15T04:23:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![marketing](https://community.modx.com/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@marketing](https://community.modx.com/u/marketing)\
**Post date:** [January 15, 2020, 4:23am UTC](https://community.modx.com/t/simplesearch-displaying-a-search-error/2133/1 "2020-01-15T04:23:09Z")

</div>

Hi,

I am a novice Modx user trying to install SimpleSearch.

I only want results to search resource 34 which it does. However, when i have searched nothing i get the following. So basically when you are opening the web page the results is showing below:

RESULTS  
There were no search results for the search “”. Please try using more general terms to get more results.

* * *

I am using the below:

[[!SimpleSearchForm]]  
Results  
[[!SimpleSearch? &ids=`34` &highlightTag=`paragraph`]]

* * *

Any help would be appreciated.

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![bruno17](https://community.modx.com/user_avatar/community.modx.com/bruno17/32/71_2.png) [@bruno17](https://community.modx.com/u/bruno17)\
**Post date:** [January 15, 2020, 8:28am UTC](https://community.modx.com/t/simplesearch-displaying-a-search-error/2133/2 "2020-01-15T08:28:12Z")

</div>

you can try to use your own chunk with &noResultsTpl

---

<div class="post-metadata">

**Author:** ![marketing](https://community.modx.com/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@marketing](https://community.modx.com/u/marketing)\
**Post date:** [January 15, 2020, 8:18pm UTC](https://community.modx.com/t/simplesearch-displaying-a-search-error/2133/3 "2020-01-15T20:18:51Z")

</div>

Thanks Bruno. How would I enter that chunk here?

[[!SimpleSearchForm]]  
Results  
[[!SimpleSearch? &ids= `34` &highlightTag= `paragraph`]]

Thanks again.

---

<div class="post-metadata">

**Author:** ![bruno17](https://community.modx.com/user_avatar/community.modx.com/bruno17/32/71_2.png) [@bruno17](https://community.modx.com/u/bruno17)\
**Post date:** [January 16, 2020, 7:39am UTC](https://community.modx.com/t/simplesearch-displaying-a-search-error/2133/4 "2020-01-16T07:39:27Z")

</div>

```auto
[[!SimpleSearch? &ids= `34` &highlightTag= `paragraph` &noResultsTpl=`yourChunk`]]

```

and create a chunk, with the content, you want to show, when no results was found

---

<div class="post-metadata">

**Author:** ![modxUser2021](https://community.modx.com/user_avatar/community.modx.com/modxuser2021/32/1575_2.png) [@modxUser2021](https://community.modx.com/u/modxUser2021)\
**Post date:** [June 16, 2021, 7:02pm UTC](https://community.modx.com/t/simplesearch-displaying-a-search-error/2133/5 "2021-06-16T19:02:38Z")

</div>

Hi Bruno, I am having a different issue with SimpleSearch and would love to pick your brain for help.  
Do I need to write a custom filter/exclusion for search?

I am trying to exclude certain keywords from my search like “mentor”.  
After I deleted my Mentor page and its resources, the search is still picking up keyword mentor in source code (i.e. label=mentor) and displaying the results.

I have already tried using :

\*[[!SimpleSearch? &tpl=`search-results-body` &exclude=`26,76,81,92,96,105,158,159,160,161,162,163,164,165,166,167,168,169,170,233,235,243,257`]]

- Unchecking Searchable in settings for the delete Mentor pages and resources.

---

<div class="post-metadata">

**Author:** ![bruno17](https://community.modx.com/user_avatar/community.modx.com/bruno17/32/71_2.png) [@bruno17](https://community.modx.com/u/bruno17)\
**Post date:** [June 16, 2021, 8:04pm UTC](https://community.modx.com/t/simplesearch-displaying-a-search-error/2133/6 "2021-06-16T20:04:54Z")

</div>

> [@modxUser2021](#):
>
> label=mentor

the question is, where is this label=mentor coming from, when you say you have deleted the mentor resource.

---

<div class="post-metadata">

**Author:** ![modxUser2021](https://community.modx.com/user_avatar/community.modx.com/modxuser2021/32/1575_2.png) [@modxUser2021](https://community.modx.com/u/modxUser2021)\
**Post date:** [June 17, 2021, 5:05pm UTC](https://community.modx.com/t/simplesearch-displaying-a-search-error/2133/7 "2021-06-17T17:05:16Z")

</div>

the metadata “label=mentor” is coming from html/head/script called googleAnalytics (a Chunk). When I check googleAnalytics it uses something called analyticsCrossDomain (a Snippet). When I check analyticsCrossDomain it reference/points to env.inc.php file that is found in my root folder src/core/config/env.inc.php. The env.inc.php does not reference any metadata
