Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Simple Search Plugin not showing results

Solved by andrii burkatskyi View solution

Started by Usk70 9 years ago · 1 replies · 1743 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 DrPen, 3 weeks ago
2 289 3 weeks ago
Plugins · by renedebaaij, 4 weeks ago
1 263 3 weeks ago
Plugins · by Thomas, 4 weeks ago
1 279 4 weeks ago
Plugins · by complanar, 2 months ago
6 600 1 month ago
Plugins · by BenLaKnet, 1 month ago
1 504 1 month ago