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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2005-12-16 - ChrisPurves
 
  • 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.