• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

1. Do a default search for literal "typos in HTML source pages" in current web. You get exactly two hits.

2. Using the same literal search, checkmark the "all webs" flag. You get zero hits.

This bug is confirmed on 4.0.2 on twiki.org, and on latest svn here on develop.twiki.org.

-- PTh

I am raising this bug to urgent since:

  • it does not make a good impression
  • search all webs search is done frequently
  • it is important to find content

-- PTh


I think I've found out where this problem is caused. I didn't know where to post a fix, so I'm editing this page.

In the WebSearch.txt file, there is a parameter to the %SEARCH which reads:

zeroresults="off%URLPARAM{search}%"
This didn't look right, so I changed it to read:
zeroresults="on"
and the search works fine.

My guess is that the quotes in the literal search are breaking the parameter list to the %SEARCH and stopping it outputting anything at all.

--DuncanKinnear

Thanks Duncan for the debug help. After some investigation I found three bugs:

  1. Improper handling of zeroresults parameter.
  2. Improper handling of search string from URLPARAM. -- tracked separately in Item3383
  3. The search function has an early return in web loop after first web that has no hits, aborting search too early. -- tracked separately in Item3384

-- PTh

All three bugs are now fixed.

-- PTh

ItemTemplate
Summary Literal search on all webs does not work
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4
SVN Range TWiki-4.1, Tue, 28 Nov 2006, build 12081
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins 12432 12433 12435
TargetRelease minor
Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2007-01-16 - JasonHill
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback