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

Simplesearch docs discrepancy

Started by Muut Archive 10 years ago · 8 replies · 382 views
10 years ago

The README for Simplesearch says:

NOTE: If you want to search ALL PAGES just keep the filters: [] section empty.
But in practice filters: [] gives no results. Instead you need

TXT
filters:

(i.e. nothing at all after the colon).

10 years ago

I was working on this today so the docs represent the develop branch, just not released yet. Also I might refactor more this weekend. I'm not 100% happy with it.

10 years ago

BTW SimpleSearch 1.7.0 has been released. This version searches tags as it didn't work before. README.md hopefully reflects this release accurately.

10 years ago

Just trying out 1.7.0. I like the extension to tags, but filters: [] still doesn't work. What does display_button: false do? No mention in docs as yet.

10 years ago

if you set it to true, it adds an actual button next to the query input box. Was a requested feature.

If you pass no filters, it should search every page.

10 years ago

I tried setting it true but couldn't see a button. I'm using the Antimatter theme straight from the box, maybe it doesn't have the icon?

Not making myself clear - again! Sorry. filters: [] returns nothing at all. filters: (with nothing else on that line) searches fine. So this works:

YAML
enabled: true
built_in_css: true
display_button: true
route: /search
template: simplesearch_results
filters:
filter_combinator: and
order:
    by: date
    dir: desc

but this produces zero results:

YAML
enabled: true
built_in_css: true
display_button: true 
route: /search
template: simplesearch_results
filters: []
filter_combinator: and
order:
    by: date
    dir: desc

Maybe I misunderstood something?

10 years ago

Just to be clear you are expecting filters: [] to be the same as filters: and it's not? If so that's a bug, if you could ticket it, that would be great.

10 years ago

Yes, that's right. How do I ticket a bug? (Sorry, my background is not in software dev. I'm learning as I go.)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2959 9 years ago
Archive · by Muut Archive, 9 years ago
3 1123 9 years ago