Tags:
create new tag
, view all tags

Question

I have 9 public webs in TWiki, but am unable to search one of them. I receive 0 results from a search within the web and cannot get any results when perforing a search over all webs.

All other webs work properly. I have reset permissions for all webs in the data and pub directories as well as compared WebPreferences files and can see no difference.

The only thing in my mind that stands out with this web is that it is much larger than the others.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, SpreadSheetPlugin, CommentPlugin, EditTablePlugin, InterwikiPlugin, RecursiveRenderPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, TablePlugin, TreePlugin
Server OS: Debian Linux Sarge, kernel 2.2.20
Web server: Apache 1.3.33
Perl version: 5.8.4
Client OS: Windows 2000, XP
Web Browser: IE, firefox, opera
Categories: Search

-- ChrisPurves - 15 Dec 2005

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

This could happen with a pre-Cairo (pre TWikiRelease01Sep2004) installation where the ArgumentListIsTooLongForSearch.

Since Cairo, TWiki performes a search internally in batches of 512 topics. How large is the average size of a topic name? If very large, it might exceed the shell command size limit (512 * topic name size). If this is the case you could increase the shell command size in your OS, or you could try to lower the $maxTopicsInSet in twiki/lib/TWiki/Search.pm from 512 to 128.

-- PeterThoeny - 15 Dec 2005

AHA! Thank you, Peter, for you prompt reply. That indeed was the problem. I had experimented with changing $maxTopicsInSet, but had only tried increasing the value never decreasing (because I really had no idea what that function did other than it had the word max in it). Decreasing to 128 resolved the problem.

-- ChrisPurves - 16 Dec 2005

 
Topic revision: r3 - 2005-12-16 - ChrisPurves
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.