From martin.cuno at posteo.de Tue Dec 10 10:47:00 2024 From: martin.cuno at posteo.de (Martin Cuno) Date: Tue, 10 Dec 2024 18:47:00 +0000 Subject: [pmwiki-users] Search results online/offline Message-ID: <4Y776d6kwsz6twp@submission01.posteo.de> Hello everyone, I have my wiki a) on hosted web space, b) on a local "UwAmp" server (like XAMMP). Everything is mirrored identically, only the php version is different: online 8.2.16, offline 8.0.0. When I SEARCH, I always get more search results online than offline. More precisely: more pages! The hits within the pages are the same. Why? Probably the php configuration (which I could change with php.ini)? What value could I change there? Any other reason? Thanks for any tips! Martin, Siegen, Germany -- Diese E-Mail wurde von Avast-Antivirussoftware auf Viren gepr?ft. www.avast.com From 5ko at 5ko.fr Tue Dec 10 12:39:48 2024 From: 5ko at 5ko.fr (Petko Yotov) Date: Tue, 10 Dec 2024 21:39:48 +0100 Subject: [pmwiki-users] Search results online/offline In-Reply-To: <4Y776d6kwsz6twp@submission01.posteo.de> References: <4Y776d6kwsz6twp@submission01.posteo.de> Message-ID: Do you use the same search form? Sometimes, custom search forms may be configured to search only in a section of the wiki. There may be a different search form in different groups, or on different pages. One search form may search through a different set of pages than for example the global search form in the header or sidebar. If it is the same form and everything is identical, I wouldn't be surprised if some environment settings are different on the 2 servers. Check the global $_SERVER and $_ENV entries, like we discussed a few weeks ago, and look for the differences. I would imagine that the default LOCALES may be different on the 2 servers. If this is the case, the search index and the search function may use different character folding rules, and searches for strings with international characters or diacritics may return different results. The code below will try to set the locale to German (UTF-8) for different servers: // Set locale to German (UTF-8) for any OS setlocale(LC_ALL, 'deu_DEU.utf8', // Common on Windows 'german_germany.utf8', 'german_germany', 'de_DE.UTF-8', // Common on Linux and macOS 'de_DE.utf8', 'de_DE', 'deu_deu', 'German_Germany' // Possible on macOS ); After that, the same user with the same permissions, searching for the same terms, should see the same results. Otherwise, the search results may vary if you have settings in a conditional, different locally and online, for example $EnablePageListProtect or $SearchPatterns. Or, if you have different user access permissions, say passwordless login on one but not on the other. If not, I'd check for file permissions, and if both server+php processes have access to all PmWiki files (in wiki.d and wikilib.d). Petko -- If you upgrade : https://www.pmwiki.org/Upgrades On 10/12/2024 19:47, Martin Cuno wrote: > Hello everyone, > > I have my wiki a) on hosted web space, b) on a local "UwAmp" server > (like XAMMP). Everything is mirrored identically, only the php version > is different: online 8.2.16, offline 8.0.0. > > When I SEARCH, I always get more search results online than offline. > More precisely: more pages! The hits within the pages are the same. > Why? Probably the php configuration (which I could change with > php.ini)? What value could I change there? > > Any other reason? > > Thanks for any tips! > > Martin, Siegen, Germany