r4 - 15 Feb 2005 - 01:41:26 - SamHaslerYou are here: TWiki >  Codev Web > SearchsTooManyDirectories
Tags:
, create new tag

Bug: Searchs too Many Directories

Search.pm searches directories that start with . and _.

Test case

  • Create data/.session
  • Create data/_default if not already there
  • Turn on logging in Search.pm by uncomment debug call in _traceExec sub
  • Do a search on all Webs
  • Look in debug.txt to see these directories being searched.

Fix record

Just need to change last grep that forms @webList to:

grep { ! /^[._]/ }

Environment

TWiki version: 01 Sep 2001
TWiki plugins:  
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- JohnTalintyre - 20 Sep 2001

We found something similar when we were building our IIS IndexServer? based search. Our solution was to move some items around:

twiki/data/logs/ twiki/logs
twiki/data/debug.txt twiki/logs/debug.txt
twiki/data/warnings.txt twiki/logs/warnings.txt

I don't know whether you consider session files to be data or not. Perhaps the solution is to move /twiki/data/<WebNames> to /twiki/data/webs/<WebNames> ?

-- MartinCleaver - 14 Nov 2001

Fix Record

The change in Search.pm is already in TWikiAlphaRelease.

-- PeterThoeny - 18 Nov 2001

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo