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:

WebCat2.0 [format thousands .0f] no go (1997) WebCat (or other) Indexing (1999) Session ID Equivalent (2003) [date format] w/in sendmail (1997) Problem (1997) Multiple catalog databases and showcart (1997) Suffix or Line? (1999) reversing the effects of [url] (1997) presetting variables ... (2000) Search for dates greater than [date] (1997) HELP! 10K hits per hour for pages that no longer exist! (2000) Listserver problem (1997) Ship Cost Not working (2000) Secure server question (1997) Setting up shop (1997) [WebDNA] Froala Editor working with WebDNA (2016) Passing WebCat Vars with Javascript (2000) Help name our technology! I found it (1997) Ok here is a question? (1997) [OT] Bush's Cyberensive (2003)