Re: 2nd try: possible to weight results of grouped fields search?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20765
interpreted = N
texte = At 2:26 PM 10/30/98, Dale Stokdyk wrote: >So the result of the first search take precedence over the results of the >second search? That's what I'm looking for if it works! > >But you're right, I will also need to make sure the second search doesn't >also return items already found in the first search. Well, it doesn't take precedence in any technical sense, it just happens first. Then the wn parameter in the second search makes sure that you don't get any duplicate results. Of course, your options for negation searches are limited to ne (opposite of eq) and wn (opposite of wo); there is no way to do the opposite of a wa search (not sure how that would work anyways...).If you need to get really fancy and have more than two or three searches, you can store the SKU of each record you find in a temporary database. Then you can do a [hideif] within subsequent searches' [founditems] to make sure you're not listing items that have already been found. I've used a variation of this method to search several different databases and return an interlaced list of results, and it seems to work pretty well.-Daveo--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Associated Messages, from the most recent to the oldest:

    
  1. Re: 2nd try: possible to weight results of grouped fields search? (Dave MacLeay 1998)
At 2:26 PM 10/30/98, Dale Stokdyk wrote: >So the result of the first search take precedence over the results of the >second search? That's what I'm looking for if it works! > >But you're right, I will also need to make sure the second search doesn't >also return items already found in the first search. Well, it doesn't take precedence in any technical sense, it just happens first. Then the wn parameter in the second search makes sure that you don't get any duplicate results. Of course, your options for negation searches are limited to ne (opposite of eq) and wn (opposite of wo); there is no way to do the opposite of a wa search (not sure how that would work anyways...).If you need to get really fancy and have more than two or three searches, you can store the SKU of each record you find in a temporary database. Then you can do a [hideif] within subsequent searches' [founditems] to make sure you're not listing items that have already been found. I've used a variation of this method to search several different databases and return an interlaced list of results, and it seems to work pretty well.-Daveo--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Dave MacLeay

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:

[isfile] ? (1997) How to display images? (2002) Base64 encryption limitations? (1999) returning the missing value (1997) Graphic Design Freelancer Looking for Work (2002) REPLACE & MAX/STARTAT parameters doesn't work? (2000) BUG REPORT: numeric ge, le, gr & ls comparisons don't work ... (1999) Webcat2, WebCommerce, Mod 10 etc. (1997) newcart (1997) Need some feedback, please. (2003) A Global Variable (1997) Search inside Include (1998) Possible Bug in 2.0b15.acgi (1997) [WebDNA] Good advise on [Showif] or alternative... (2012) RE: Missing contexts on NT (1997) [WebDNA] Listfiles and sort order (2010) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) RE: Still Learning (1997) serial number not working (1998) RE: Switching To NT (1999)