Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Simple Search Plugin not showing results

Solved by andrii burkatskyi View solution

Started by Usk70 9 years ago · 1 replies · 1566 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 complanar, 5 days ago
0 118 5 days ago
Plugins · by Vladimir Novak, 1 month ago
3 581 1 month ago
Plugins · by Mathieu Lecouturier, 1 month ago
3 394 1 month ago
Plugins · by Slebeig, 2 months ago
1 510 2 months ago
Plugins · by Rene, 3 months ago
2 704 3 months ago