This is a rather complex script that uses
Xtscript and
filelist to create a
javascript array of the search results
which are then sorted displayed and paged using
javascript
It uses "post" so no extra query string variables
There are all sorts of tricks and strange looking code used to output the js correctly so careless editing may break the script
The actual file lists are not in the xtscript so should not get timeouts
The search query must be 2 or more chars and is filtered against malicious input
Uncomment the 3 lines in
# Query health check to ban
- negation and
* ? wildcards in the search query
This version is set up to search 4 folders extending it is fairly simple
1/ Insert another line like this into the
# Filelist patterns
var $list5 = xt:filelist folder="/FOLDER_5" $params
2/ Insert another filelist into the
// Results array before the
{_$$dummy|} entry
<{_$$list5|}>
Try to use meaningful names for your files as the name of the files determines the search results
Remember This uses javascript so it uses memory on the users device to store the whole array of the results