Tags:
create new tag
, view all tags

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 | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-02-15 - SamHasler
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.