====== SearchStats Plugin ====== ---- plugin ---- description: This plugin records the search words and displays stats in the admin section author : Imho email : mike.schuh@gmx.at type : action, admin, helper lastupdate : 2011-06-29 compatible : Anteater, Rincewind, Binky, Ponder Stibbons, Greebo, Hogfather, Igor, Jack Jackrum, !Kaos depends : conflicts : docsearch similar : tags : search,statistics sourcerepo : https://github.com/Imhodad/dokuwiki-plugin-searchstats/ bugtracker : https://github.com/Imhodad/dokuwiki-plugin-searchstats/issues donationurl: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=XKGFMNXAD9ANQ&lc=AT&item_name=Dokuwiki%20Searchstats%20Plugin¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted downloadurl: https://github.com/Imhodad/dokuwiki-plugin-searchstats/archive/master.zip ---- FIXME **Plugin is no longer maintained by the creator => someone has to take over** FIXME ===== Download and Installation ===== Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. ===== Requirements ===== No special requirements. ===== Syntax and Usage ===== Nothing special to do for you. The plugin stores search keywords automatically and displays stats in the admin backend. The bar chart is displayed by using the Google Chart API. ===== Todo ===== * Check conflict with the docsearch Plugin ===== Updates ===== {{rss>http://github.com/Imhodad/dokuwiki-plugin-searchstats/commits/master.atom date}} ===== Issues ===== Please report bugs and issues at https://github.com/Imhodad/dokuwiki-plugin-searchstats/issues There is a conflict with the docsearch Plugin. When docsearch AND searchstats are both installed your search keywords will get counted double. As you know that, you could halve the results of searchstats or wait for an update when I find a bugfix for that. ===== Bugs? ===== Is it just me or is every search counted twice? - Andy 03.09.2010 > Actually that doesn't happen on my installation. Could you tell me a search term where this happens in your installation? Perhaps you could list the plugins you are using or mail them to me? - Imho 03.09.2010 >> Hi, thanks for the quick reply..it happens with all search terms. I also had a similar situation to the error below and i had to create the folder in data/index manually before I could use the plugin (my file/folder permissions are all ok, had no other problems so far). I´ll have a play around and let you know if I figure out what it is with the search 'doubling'. >>> Thanks. That would be great. >>>> Seems to be a conflict with the docsearch plugin (a plugin I must admit that I have never used :-) ). I removed it and the stats are now correct. Whether this is a general conflict or just down to my installation, who knows... Cheers. >>>>> You are absolutely right. I installed docsearch and had the same 'doubling' effect. Docsearch Plugin indexes documents (pdf, ...) and every time a user searches for keywords in the pages, docsearch performs a second search in the docsearch index. That's why we got a double counting. I will add docsearch to the conflict list and try to find a workaround in my plugin. Thank you so much for figuring this out. - Imho 06.09.2010 >>>>>> A possible Workaround is to check if $conf['datadir'] contains the word docsearch. function _getSearchWords(&$event, $param) { global $conf; if(strpos($conf['datadir'],"docsearch") == false){ ... \\ I get the same issue (all search reported twice), I switched back to the default template and disabled all other plugin but I still have the issue. - Matthieu 07.01.2011 > update : a search is counted twice when the cache is empty, so every new search start at 2, then increment one by one. If I delete the cache, it's counted twice one more time. - Matthieu 08.01.2011 ---- On "Binky", after clean install, entering the plugin's page in Admin area first time (ie.: there are NO search words registered yet) there are a lot PHP error messages appear till I use the search function at least once. Peter, 07/02/2014 ---- Chinese font and other East Asian characters seem not be supported. In these language, space is not used to separate between words. So a word comprised of several characters will be divided into different queries. For example, searching for a Chinese word "维基" results in two queries "维" and "基". -- baifeng 7/29/2013