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:

Using [Include] Context (1999) RE: ShowNext Command (1997) E-mailer error codes (1997) can WC render sites out? (1997) Authenticate (1997) Emailer (2000) HomePage Caution (1997) [WebDNA] Authenticating with Twitter OAuth API v1.1 (2013) Re[2]: 2nd WebCatalog2 Feature Request (1996) Creating main- and sub-category search (1997) Hello??? (1997) Best way to add data to .db (1999) Extra carriage returns (1999) Adding up weights (1998) RE: Loss in form (1998) Size Limitation through a POST via SSL? (2005) Deleting Multiple Database Records based on Checkbox (1998) Nesting FoundItem Context (1997) Seeking WebCat Bulletin Board (1999) WC2b12: Yes, Formulas.db is for real (1997)