Tags:
create new tag
view all tags

Question

Hi.

I want to provide a custom search page like that in the Know web. The general WebSearch is a snap to do because of the == Warning: Can't find topic ""."" ==.

However, the custom parts seem very cumbersome to do, error-prone, not-automatically-updated, etc.

Am I missing the easy way to create the equivalent of "Query by Classification"? (See the Edit view of the Know web's Search topic.)

I found nothing in the answered questions on point. The topic SearchUsingMulitpleFormValues (resp. SearchUsingMultipleFormValues) had some promise, but was not close enough.

Thanks ... cheers, drl

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat 9
Web server: Apache 2
Perl version: 5.6
Client OS: Windows XP / SP1
Web Browser: IE6.0

-- DennisLienke - 08 Jul 2004

Answer

Not exactly sure I understand your question.

BugReport and TWikiInstallation have a filter where you can run queries by example. Edit those pages to see how it works.

-- PeterThoeny - 11 Jul 2004

Hi. Thanks for the response.

More specifically, here is the code for the "Queryby Platform" in Know.Search (lines split for readability):

   * <B>Query by platform</B>: * <A
   HREF="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%WEB%/?scope=text&regex=
   on&search=% 4FperatingSystem.%2AOsHPUX">HP-UX</A>, <A
   HREF="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%WEB%/?scope=text&regex=
   on&search=%4FperatingSystem.%2AOsLinux">Linux</A>, <A
   HREF="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%WEB%/?scope=text&regex=
   on&search=%4FperatingSystem.%2AOsSolaris">Solaris</A>, <A
   HREF="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%WEB%/?scope=text&regex=
   on&search=%4FperatingSystem.%2AOsSunOS">SunOS</A>, <A
   HREF="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%WEB%/?scope=text&regex=
   on&search=%4FperatingSystem.%2AOsMacOS">Mac OS</A>, <A
   HREF="%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%WEB%/?scope=text&regex=
   on&search=%4FperatingSystem.%2AOsWin">Windows</A>

Notice how the platforms are coded explicitly. That's the part that seemed onerous to me. For example, suppose we want to add Xanados to the list of platforms. That's relatively easy in the form topic (as I understand it), but then we would want to the custom search to have that as well, and, with the code above, we'd need to do the modification manually each time we added a platform.

Although I have not yet tried it, the custom query in BugReport seems to handle my question. An additional answer seems to be that the custom search in the demo Know web is simply not as sophisticated as that in the BugReport topic ... cheers, drl

-- DennisLienke - 11 Jul 2004

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2004-09-02 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.