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
--
ChrisPurves - 15 Dec 2005
Answer
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