Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-30T00:57:23.660Z
Comments.Text: 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!
Comments.UserDisplayName: August Miller
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-30T01:00:43.283Z
Comments.Text: 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.
Comments.UserDisplayName: liquidRock
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-30T01:04:45.987Z
Comments.Text: 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.
Comments.UserDisplayName: August Miller
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-30T01:17:41.487Z
Comments.Text: Interesting. Thanks for the info, man. Much appreciated.
Comments.UserDisplayName: liquidRock
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-30T01:35:09.563Z
Comments.Text: 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! 
Comments.UserDisplayName: August Miller
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-30T02:02:14.570Z
Comments.Text: Dematerialize away.  
Comments.UserDisplayName: liquidRock
Tags: <search>
Title: Possible to disable the search system?
ThreadText: # 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
  
  