Hon3y HD: improve search query

fixes #1859
This commit is contained in:
kaso17 2017-09-20 13:17:09 +02:00
parent 2e1ce6f202
commit 9c2e5b4219
1 changed files with 7 additions and 1 deletions

View File

@ -68,9 +68,15 @@
path: /browse.php
inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
search: "{{ .Query.Keywords }}"
search: "{{ .Keywords }}"
searchin: "title"
incldead: "1"
keywordsfilters:
# by default the search returns unordered resuts of an OR query making the results useless in many cases, adding + to the keywords improves the situration (Issue #1859)
- name: re_replace # replace special characters with " +"
args: ["[^\\w\\d]+", " +"]
- name: prepend
args: "+"
rows:
selector: table > tbody > tr.tt
fields: