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:

WebCat cannot handle compatible search parameters? (1997) WebCatalog Plug-in for Webstar. (1997) searchable list archive (1997) [searchString] (1997) Safari cookies (2006) CMS (2003) Apache suffix mapping for .tpl (2000) Listfiles (2004) [WebDNA] Cookie behavior (2010) File Upload (1997) Cannot calculate prices (1997) Store results of GetChars? (2003) Kaaaaahhhhhhhnnnnnnn! (1997) Download Question (1997) This list needs a digest: rant, rave... (1997) Weird Problem (1997) default value from Lookup (was Grant, please help me) (1997) Creating main- and sub-category search (1997) [isfile] ? (1997) Virtual hosting and webcatNT (1997)