HOWTO (872B)
1 The default path for site search is /_search/. Assuming you want to keep 2 that default, you could enable site search like so: 3 4 5 mkdir -p /www/werc/sites/MYSITE/_search/_werc/ 6 echo 'conf_enable_duckduckgo' > /www/werc/sites/MYSITE/_search/_werc/config 7 mkdir -p /www/werc/sites/MYSITE/_werc/lib/ 8 cp /www/werc/apps/duckduckgo/footer.inc.sample /www/werc/sites/MYSITE/_werc/lib/footer.inc 9 10 Searches will POST to /_search/ and from there get redirected to Duck Duck 11 Go with a site:$SERVER_NAME prefix. To have the search path URL be some- 12 thing different, you'll have to edit line 23 of app.rc to point to the new 13 path. 14 15 TODO: 16 * Make it automatically work no matter which directory the app is enabled in. 17 * OR make the search path a configuration option. 18 * Provide a template for non-footer deployment 19 * Enable the search path itself to serve a search form to GET requests 20