<p>Wondering if it's possible to completely disable the search if the site doesn't need it. In WordPress I'm able to detect when <code>is_search()</code> and then setup a redirect, as well as a redirect in the search template as a backup.</p>
<p>Any way to do this easily in craft or just turn the search system off completely?</p>
<p>thanks</p>

CC BY-SA 4.0
2021-10-30T00:57:23.660Z
Craft doesn't include a default search page—are you looking to disable it in the control panel? In other words, a search feature won't exist on your site unless you create a template and query for entries in response to a form submission or URL pattern… Indexing is another matter—some of your content (i.e. titles) will be indexed no matter what, but you're able to control what custom fields get indexed!
August Miller
CC BY-SA 4.0
2021-10-30T01:00:43.283Z
Not the cp, the front end. If anyone can still type a query in the url, I'd like to prevent that. Some sites don't need a search, and some site owners don't want one.
liquidRock
CC BY-SA 4.0
2021-10-30T01:04:45.987Z
Yeah, don't sweat it—in Craft, search is only a "feature" if you build it. It'll never disclose information about Entries/Categories/Assets/etc. unless you explicitly query  for and display them. There is a search index maintained in the database so that it's *possible* to search, but again, you have to actually implement a search form + results page to take advantage of it.
August Miller
CC BY-SA 4.0
2021-10-30T01:17:41.487Z
Interesting. Thanks for the info, man. Much appreciated.
liquidRock
CC BY-SA 4.0
2021-10-30T01:35:09.563Z
You got it. I'll think on how this can be transformed into a complete answer—if I ghost-edit your original question a bit, don't be alarmed! 
August Miller
CC BY-SA 4.0
2021-10-30T02:02:14.570Z
Dematerialize away.  
liquidRock
<search>
Possible to disable the search system?
# Possible to disable the search system?

(Asked by: username_0 on 2021-10-29)

Wondering if it's possible to completely disable the search if the site doesn't need it. In WordPress I'm able to detect when `is_search()` and then setup a redirect, as well as a redirect in the search template as a backup.

Any way to do this easily in craft or just turn the search system off completely?

thanks

**Tags:** search

> **Comments:**
> **username_1**: Craft doesn't include a default search page—are you looking to disable it in the control panel? In other words, a search feature won't exist on your site unless you create a template and query for entries in response to a form submission or URL pattern… Indexing is another matter—some of your content (i.e. titles) will be indexed no matter what, but you're able to control what custom fields get indexed!  
> **username_0**: Not the cp, the front end. If anyone can still type a query in the url, I'd like to prevent that. Some sites don't need a search, and some site owners don't want one.  
> **username_1**: Yeah, don't sweat it—in Craft, search is only a "feature" if you build it. It'll never disclose information about Entries/Categories/Assets/etc. unless you explicitly query  for and display them. There is a search index maintained in the database so that it's *possible* to search, but again, you have to actually implement a search form + results page to take advantage of it.  
> **username_0**: Interesting. Thanks for the info, man. Much appreciated.  
> **username_1**: You got it. I'll think on how this can be transformed into a complete answer—if I ghost-edit your original question a bit, don't be alarmed!   
> **username_0**: Dematerialize away.    

---

## 0 answers

