Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Simple Search Plugin not showing results

Solved by andrii burkatskyi View solution

Started by Usk70 9 years ago · 1 replies · 1330 views
9 years ago

Hi,

I am trying to get the simple search plugin working.
I have integrated the search bar in my theme and applied the following config to /user/config/plugins/simplesearch.yaml:

YAML
enabled: true
built_in_css: true
display_button: true
min_query_length: 3
route: /search
search_content: rendered
template: simplesearch_results
ignore_accented_characters: false
order:
    by: date
    dir: desc

Unfortunately when I search grav routes to http://myserver/search/query:Factoring I get no results (the results page is properly routed).

I guess I am missing something in my config or I have missed other stuff. Any tip/suggestion is welcomed.

Thanks,

9 years ago Solution

Hi!
Seems missing filter. Try to add in your /user/config/plugins/simplesearch.yaml:

YAML
filters:
  category:
    - '@none'
filter_combinator: and
👍 1
last edited 10/16/17 by andrii burkatskyi

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 72 2 months ago