diff --git a/app/assets/javascripts/discourse/controllers/full-page-search.js.es6 b/app/assets/javascripts/discourse/controllers/full-page-search.js.es6 index 8487a63a3ce..7719ce08502 100644 --- a/app/assets/javascripts/discourse/controllers/full-page-search.js.es6 +++ b/app/assets/javascripts/discourse/controllers/full-page-search.js.es6 @@ -206,11 +206,6 @@ export default Ember.Controller.extend({ this.get('selected').clear(); }, - showSearchHelp() { - // TODO: dupe code should be centralized - ajax("/static/search_help.html", { dataType: 'html' }).then(model => showModal('searchHelp', { model })); - }, - search() { this._search(); } diff --git a/app/assets/javascripts/discourse/routes/application.js.es6 b/app/assets/javascripts/discourse/routes/application.js.es6 index f34b5ffcde8..df074f01d3c 100644 --- a/app/assets/javascripts/discourse/routes/application.js.es6 +++ b/app/assets/javascripts/discourse/routes/application.js.es6 @@ -28,12 +28,6 @@ const ApplicationRoute = Discourse.Route.extend(OpenComposer, { actions: { - showSearchHelp() { - ajax("/static/search_help.html", { dataType: 'html' }).then(model => { - showModal('searchHelp', { model }); - }); - }, - toggleAnonymous() { ajax("/users/toggle-anon", {method: 'POST'}).then(() => { window.location.reload(); diff --git a/app/assets/javascripts/discourse/templates/full-page-search.hbs b/app/assets/javascripts/discourse/templates/full-page-search.hbs index 08154200f21..443579e814b 100644 --- a/app/assets/javascripts/discourse/templates/full-page-search.hbs +++ b/app/assets/javascripts/discourse/templates/full-page-search.hbs @@ -42,9 +42,6 @@ {{#if searchActive}} {{i18n "search.no_results"}} {{/if}} - {{#unless isExpanded}} - {{i18n "search.search_help"}} - {{/unless}} {{/unless}} @@ -120,9 +117,6 @@ {{#if hasResults}}
-
-
order:views | order:latest | order:likes | @username | user:foo |
status:open | status:closed | status:archived | status:noreplies | status:single_user |
#category-slug | category:foo | group:foo | badge:foo | |
in:likes | in:posted | in:watching | in:tracking | in:private |
in:bookmarks | in:first | in:pinned | in:unpinned | in:wiki |
posts_count:num | before:days or date | after:days or date | tags:one,two |
-
rainbows #parks
will search for topics containing the word "rainbows" in the category "parks".rainbows category:parks status:open order:latest
will search for topics containing the word "rainbows" in the category "parks" that are not closed or archived, ordered by date of last post.rainbows category:"parks and gardens" in:bookmarks
will search for topics containing the word "rainbows" in the category "parks and gardens" that are bookmarked by you.