Re: Num Found by category
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 32652
interpreted = N
texte = on 03.06.2000 4:15, Rodolfo de la Garza at listas@edifika.com wrote:> I have a search context with categorysumm in it.> I want to display the categories with the number of items found in each> category as:> > cat1 (5)> cat2 (33)> cat3 (3)No way with summ alone, because this parameter is *supposed* to deliverunique values.You might search for existing categories with summ, and get the number ofeach category in a second (nested) search. For the example I assume yourdatabase field is named db_cat. Don't miss allcase=t in the nestedsearch, because this makes it much faster:[search db=my.db&neDB_CATdatarq=[blank]&DB_CATsort=1&DB_CATsumm=t] [founditems] [text]v_cat=[db_cat][/text] [search db=my.db&eqDB_CATdatarq=[v_cat]&allcase=t] [v_cat] ([numfound)
[/search] [/founditems][/search]Note: If you do not have all available categories in the database but wantthose categories listed like cat4 (0) you can't use the nested search.Then you search for each known category seperately.Peter-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
on 03.06.2000 4:15, Rodolfo de la Garza at listas@edifika.com wrote:> I have a search context with categorysumm in it.> I want to display the categories with the number of items found in each> category as:> > cat1 (5)> cat2 (33)> cat3 (3)No way with summ alone, because this parameter is *supposed* to deliverunique values.You might search for existing categories with summ, and get the number ofeach category in a second (nested) search. For the example I assume yourdatabase field is named db_cat. Don't miss allcase=t in the nestedsearch, because this makes it much faster:[search db=my.db&neDB_CATdatarq=[blank]&DB_CATsort=1&DB_CATsumm=t] [founditems] [text]v_cat=[db_cat][/text] [search db=my.db&eqDB_CATdatarq=[v_cat]&allcase=t] [v_cat] ([numfound)
[/search] [/founditems][/search]Note: If you do not have all available categories in the database but wantthose categories listed like cat4 (0) you can't use the nested search.Then you search for each known category seperately.Peter-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Peter Ostry
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[WebDNA] Test - ignore (2019)
Sending Email (2004)
New Plug-in and Type 11 errors (1997)
Major NT problem Interruption of service (1998)
Associative lookup style? + bit more (1997)
Just Testing (1997)
SiteEdit NewFile.html ? (1997)
If Empty ? (1997)
Mauthonly followed by mauthcapture (2002)
Navigator 4.01 (1997)
Secure server question (1997)
NumFound (1999)
ooops...WebCatalog [FoundItems] Problem - LONG - (1997)
WebCatalog 4.0.2rc1 and rc2 crash WebSTAR on quit (2001)
[WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (2012)
Install problem (Was Bad Install) (2003)
Running 2 two WebCatalog.acgi's (1996)
Protecting Files (2005)
Blank Orders (2005)
Problems with [Search] param - Mac Plugin b15 (1997)