DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:docsearch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:docsearch [2014-07-26 01:37] – [Cronjob] 50.153.127.2plugin:docsearch [2024-01-08 17:05] (current) Aleksandr
Line 6: Line 6:
 email      : dokuwiki@cosmocode.de  email      : dokuwiki@cosmocode.de 
 type       : action type       : action
-lastupdate : 2013-08-14 +lastupdate : 2016-07-18 
-compatible : 2009-08-01, 2013-05-10+compatible : Hogfather, 2009-08-01, 2013-05-10
 depends    :  depends    : 
 conflicts  conflicts 
-similar    : +similar    : elasticsearch
 tags       : search tags       : search
  
Line 21: Line 21:
 This plugin allows you to search through your uploaded documents. It is integrated into the default DokuWiki search. Just fill in a search string and start to search. This plugin allows you to search through your uploaded documents. It is integrated into the default DokuWiki search. Just fill in a search string and start to search.
  
-===== Download and Installation =====+:!: A probably better alternative to this plugin, is the [[plugin:elasticsearch|elasticsearch Plugin]] with its ability to index documents.
  
-[[http://www.cosmocode.de/en/wiki/dokuwiki/plugins|{{ http://www.cosmocode.de/_media/en/wiki/dokuwiki/cosmologo.png|A CosmoCode Plugin}}]]+[[https://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ https://www.cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the URL given above. Refer to [[:Plugins]] on how to install plugins manually.+===== Download and Installation =====
  
-  * https://github.com/cosmocode/docsearch/zipball/master+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ==== Changes ==== ==== Changes ====
  
-{{rss>https://github.com/cosmocode/docsearch/commits/master.atom date}}+{{rss>https://github.com/cosmocode/docsearch/commits/master.atom author date}}
  
 ==== Cronjob ==== ==== Cronjob ====
  
-To create the search index you have to set-up a cronjob (or scheduled task under windows) that runs the ''dokuwiki/lib/plugins/docsearch/cron.php''. You can also use online cron job service https://www.easycron.com to trigger the script. To use https://cronblast.com, follow the tutorialhttps://cronblast.com/blog/posts/tutorial-create-a-docsearch-cron-job-for-dokuwiki+To create the search index you have to set up a cronjob (or scheduled task under windows) that runs the ''dokuwiki/lib/plugins/docsearch/cron.php''. You can also use online cron job service https://www.easycron.com to trigger the script and a tutorial at https://www.easycron.com/cron-job-tutorials/how-to-set-up-cron-job-for-dokuwiki-docsearch.
  
-The search just find documents in the index. If you create the index, upload a new file and search for the file, you'll won't find it until you rebuild the index.+The search just finds documents in the index. If you create the index, upload a new file and search for the file, you won't find it until you rebuild the index.
  
-It is possible that you need to increase the ''memory_limit'' from your PHP configuration. see [[phpfn>ini.core]]+It is possible that you need to increase the ''memory_limit'' from your PHP configuration. See [[phpfn>ini.core]]
  
 :!: Because docsearch uses the cron.php as a CLI-PHP (Command Line) script, you have to increase memory_limit in /etc/php5/cli/php.ini <sub>//Joachim 10.01.2011//</sub> :!: Because docsearch uses the cron.php as a CLI-PHP (Command Line) script, you have to increase memory_limit in /etc/php5/cli/php.ini <sub>//Joachim 10.01.2011//</sub>
Line 52: Line 52:
  
 The plugin tries to convert every media document to a text file. On this progress it uses a given set of external tools to convert it. The plugin tries to convert every media document to a text file. On this progress it uses a given set of external tools to convert it.
-This tools are defined per file extension. The config stores one extension and it'tool per line.+These tools are defined per file extension. The config stores one extension and its tool per line.
 You can use %in% and %out% for the input and output file. You can use %in% and %out% for the input and output file.
  
Line 75: Line 75:
 you have to ensure that the output file is UTF-8 encoded. Otherwise you might get trouble with non-ASCII characters. you have to ensure that the output file is UTF-8 encoded. Otherwise you might get trouble with non-ASCII characters.
 ===== Todo ===== ===== Todo =====
-Allow the user to use the DokuWiki indexer to index the documents.+  * Allow the user to use the DokuWiki indexer to index the documents
 +  * Index documents that have been modified or changed only. -> Skip already indexed documents for performance reasons.
  
 ===== Conversion settings ===== ===== Conversion settings =====
Line 153: Line 154:
 rm -f $tmpfile rm -f $tmpfile
 </file> </file>
 +
 +An Alternative to openoffice is to use Apache Tika http://tika.apache.org/
 +Example:
 +  /usr/bin/java -jar /path/to/apache-tika/tika-app-x.xx.jar --text %in% > %out%
  
 ==== Mindmaps from FreeFind ==== ==== Mindmaps from FreeFind ====
plugin/docsearch.1406331423.txt.gz · Last modified: 2014-07-26 01:37 by 50.153.127.2

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki