Re: Too Much Info

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20263
interpreted = N
texte = >Hello Everyone, > >I have a problem with too much information being returned after a >customer does a search. I've put a max of 8 entries to be displayed but >the numfound tag >tells the customer that 190 entries were found. How can I get the search >to return only the top ten best matches instead of 190. > >This is the code I'm using: > >
> > > > > > >

Title:
> Description: size=25>
>

> >Thanks >Rob Ruth > > > I don't think you want to use the [numfound] tag for what you want. You want to just state Here's your top 8 matches. That can be hardcode in unless there are cases where there will be less than 8 results. Then it would be more likeHere's your top [showif [numfound]>8]8[/showif][hideif [numfound]>8][numfound][/hideif]Better yet, if [max] might change, then use[showif [numfound]>[max]][max][/showif][hideif [numfound]>[max]][numfound][/hideif]Good luck!Sandy Associated Messages, from the most recent to the oldest:

    
  1. Re: Too Much Info (Dave MacLeay 1998)
  2. Re: Too Much Info (Sandra L. Pitner 1998)
  3. Too Much Info (Robert Ruth 1998)
  4. Re: Too Much Info (Kenneth Grome 1998)
>Hello Everyone, > >I have a problem with too much information being returned after a >customer does a search. I've put a max of 8 entries to be displayed but >the numfound tag >tells the customer that 190 entries were found. How can I get the search >to return only the top ten best matches instead of 190. > >This is the code I'm using: > > > > > > > [cart]> > >

Title:
> Description: size=25>
>

> >Thanks >Rob Ruth > > > I don't think you want to use the [numfound] tag for what you want. You want to just state Here's your top 8 matches. That can be hardcode in unless there are cases where there will be less than 8 results. Then it would be more likeHere's your top [showif [numfound]>8]8[/showif][hideif [numfound]>8][numfound][/hideif]Better yet, if [max] might change, then use[showif [numfound]>[max]][max][/showif][hideif [numfound]>[max]][numfound][/hideif]Good luck!Sandy Sandra L. Pitner

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:

Test (2003) Separate SSL Server (1997) WCS Newbie question (1997) refreshing IE with posted .tmpl (1997) [WebDNA] Page close data (2014) What do you charge? (1998) Combining search criteria in a context? (1998) WebCat cannot handle compatible search parameters? (1997) Remove me from your list immeadiately (1999) Signal Raised Error (Part III) (1997) DNABill Screen Shots (2003) WCS Newbie question (1997) All questions are welcome on this list (1997) [WebDNA] Trigger troubles (2014) Template transformed itself into a database? (1998) File info on files with funky characters in their names (2003) WebCatalog for guestbook ? (1997) New servers and new inline cache (1997) foreign character sets and conversions (1998) Email notification to one of multiple vendors ? (1997)