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:

Append File help needed (2000) Hiding HTML and page breaks (1997) searching multiple databases (1997) Resume Catalog ? (1997) can WC render sites out? (1997) WebCat2b13MacPlugIn - syntax to convert date (1997) Price + Texte (1999) A little syntax help (1997) Register First (2000) WC2.0 Memory Requirements (1997) Re:Emailer Set Up (1997) Running 2 two WebCatalog.acgi's (1996) Trouble with formula.db + more explanation (1997) Announcement-WebCatalog 2.0 Released (1997) founditems and setheader (2000) Assigning new CART number (1997) frames & carts (1997) using WC to create a DB online (2000) Web Catalog 2 demo (1997) Date search - yes or no (1997)