Open-CSP / WikiSearchFront

Front-end for the WikiSearch extension.
GNU General Public License v2.0
3 stars 6 forks source link

Added option to start search without any terms #3

Closed bertrandgorge closed 1 year ago

bertrandgorge commented 1 year ago

Added a new option "search on empty queries" that, when set to true, allows WikiSearchFront to start the search even when no terms are given.

{{#WikiSearchFrontend:
|size=10
|search on empty queries=true
|facets=4
...
}}
robis24 commented 1 year ago

When no terms are entered WikiSearchFront will add an * to the search term query, so this should already work by default. Maybe you accounted this problem in a version where the WikiSearch extension stopped altering the query string and WikiSearchFront did not alter the query string yet, could this be the case or am I missing the use case?

bertrandgorge commented 1 year ago

Ah, that's possible. I've just tried with the current master branch and I confirm the correct behaviour, so you can just ditch this PR ! Thanks !