create new tag
, view all tags

Development discussion for QuickSearchPlugin

Here we discuss about QuickSearchPlugin development issues ...

I'm testing the Beta of 14-Apr-2002 and the current (4-Jun-2002) CVS code here. I like the ability to do an AND in the SEARCH variable by using the semicolon(;). This doesn't seem to work with the QuickSearch.

Example: I have topics with some kind of BugReportForms attached to them. Fields are Project and State, among others. This

  QUICKSEARCH{ search="Project.*=.*QuickSearchPluginDev;State.*=.*Reported" regex="on" }% 
doesn't find any topics, while
  QUICKSEARCH{ search="Project.*=.*QuickSearchPluginDev" regex="on" }% 
finds all topics belonging to the project specified, and this
  QUICKSEARCH{ search="State.*=.*Reported" regex="on" }% 
finds all the reported bugs.

Bug or Feature?

PS. What I really need is the "totalsonly" option. I'd like to feed the number of hits into the SpreadSheetPlugin or the GaugePlugin. Are there any better methods than QUICKSEARCH?

-- StefanSteuerwald - 04 Jun 2002

Neither Bug nor Feature. I just built QUICKSEARCH from a version of TWiki::Search that preceeded the AND capability. It probably wouldn't be too hard to steal this feature as well.

I use the totalsonly option the same way you're suggesting (in spreadsheets especially), I think it would be a reasonable extension to the basic SEARCH feature.

The main change that QUICKSEARCH makes to the basic search is to reduce time spent on retrieving meta-data and formatting the page. If performance is a common problem then maybe the right answer is to add a quick switch to SEARCH and eliminate the need to maintain a the QUICKSEARCH hack.

-- DaveAlsup - 05 Jun 2002

Aha! I thought QUICKSEARCH was using the SEARCH variable somehow, thus automatically providing its capabilities. Ok, understood. Actually, formatted SEARCH does almost what we want, with a format string of " " (note the space). Then the output is just "Number of topics: N", and if I could just get rid of the leading text we'd be there.

I will suggest the extension to SEARCH as you outlined, after I've found the correct place here to do so.

-- StefanSteuerwald - 05 Jun 2002

checked .zip into CVS

-- WillNorris - 19 Jul 2005

I was looking for something that could show only the number of found topics as the result of a search and found this plugin. Stefan said in 2002 the normal SEARCH should be able to do exactly that instead of duplicating half the code.

Noticed that this plugin has actually been updated for Dakar but noone ever finished the job.

Maybe I will test it in the next few days to see if it can meet my requirement. And if it works I'll upload a new zip.

If anyone else want to have a go - check out the plugin from SVN. The version on SVN is newer than here on twiki.org. I therefore also toggled the "Develeoped on SVN" flag to yes.

-- KennethLavrsen - 24 May 2006

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2006-05-24 - KennethLavrsen
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.