Replace Google search with Discourse search on not found page


(John Muhl) #1

Can the not found page be changed to use Discourse’s built-in search rather than Google? Some sites may not be indexed by Google or not be indexed frequently enough for it be very effective.


(Michael Downey) #2

I actually think this was put in place because the full-page search results were not yet completed. But now that they are, I agree it’s probably better to change this to an input for the full-page search.


(Jeff Atwood) #3

No, this was put in place because Google’s search is generally superior to ours. Wee bit of difference in operating budget.

Note that this search form is disabled if the site is private, e.g. not index-able from the outside world without a login, ala Facebook.


(Sam Saffron) #4

Clearly we should change this for sites that require login or ones that are not indexed (disable robots.txt)


(John Muhl) #5

My site is public and may never be indexed by Google. Is the best option to hide the search with CSS and provide no search on that page at all?


(Sam Saffron) #6

If “allow index in robots txt” is set to false I will change it so it uses full page search. That is a no brainer.


(Daniel Davis) #7

If not replacing the search with Discourse search, it would be good to be able to optionally replace it with other search providers.
(disclaimer: I work for one)


#8

Was this ever implemented or has it regressed? My forum is private, thus not indexed by search engines, and allow index in robots txt is set to false. However, users still see the Google search. It would be good to replace that with the regular Discourse search.



(Jeff Atwood) #9

Possibly, @neil can you have a look when you are back Monday?


(Neil Lalonde) #10

That was never implemented. So we could schedule that for 2.1.

Also, there was a regression. We had code to hide the Google search form for private sites, but it wasn’t working. I fixed that.


(Jeff Atwood) #11

I do think our internal search is good enough to use there now (hat :tophat: tip @sam) so can you make sure that’s on your list for 2.1?


(Sam Saffron) #12

Yeah I would like this done now, linking to Google is a problem in quite a few cases, @misaka4e21 can you take this?


(Sam Saffron) #13

And … this is done now :slight_smile:

Thanks @misaka4e21!


DuckDuckGo Search Suggestions
(Sam Saffron) #14