Re: Searching (second post)

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23134
interpreted = N
texte = >I have two groups of fields I am searching through. >The first group contains fields like Product Name, Manufacturer and >Category of Products. >The second group contains descriptions. >I want all the results from the first group displayed first. >Then the set of results from the second group minus any redundant results >displayed.The standard ordering for found items is to put 'better' matches at the top of the list -- which means that any records that match in *both* groups are displayed first, followed by items with fewer hits. Basically, multiple 'hits' in a single record cause that record to bubble to the top of the list. This is similar to how the search engines do it. This does not sound like your criteria, though.>If the search produces more than some number of results, say 25, then only >the first 25 results come up and then there is a link to get the next 25.This is handled by [ShowNext], with max=25 in the search.>Is is possible to create some sort of temporary Database, that is smart >enough to destroy itself after its used up and that will not create >problems if two or more users perform searches at or near the same time?Yes, you could write a database (using [WriteFile]) named [cart].db, and then at the end of the template you could do [closedatabase db=[cart].db] and then [deletefile file=[cart].db]. This might work faster than you think. Tp remove duplicates, you would use the summary feature: fieldnameSUMM=TTechnical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Searching (second post) (PCS Technical Support 1999)
  2. Re: Searching (second post) (The Mooseman 1999)
  3. Searching (second post) (Josh Tiger (by way of josh@pop-art.com) 1999)
>I have two groups of fields I am searching through. >The first group contains fields like Product Name, Manufacturer and >Category of Products. >The second group contains descriptions. >I want all the results from the first group displayed first. >Then the set of results from the second group minus any redundant results >displayed.The standard ordering for found items is to put 'better' matches at the top of the list -- which means that any records that match in *both* groups are displayed first, followed by items with fewer hits. Basically, multiple 'hits' in a single record cause that record to bubble to the top of the list. This is similar to how the search engines do it. This does not sound like your criteria, though.>If the search produces more than some number of results, say 25, then only >the first 25 results come up and then there is a link to get the next 25.This is handled by [shownext], with max=25 in the search.>Is is possible to create some sort of temporary Database, that is smart >enough to destroy itself after its used up and that will not create >problems if two or more users perform searches at or near the same time?Yes, you could write a database (using [writefile]) named [cart].db, and then at the end of the template you could do [closedatabase db=[cart].db] and then [deletefile file=[cart].db]. This might work faster than you think. Tp remove duplicates, you would use the summary feature: fieldnameSUMM=TTechnical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

member logins database (2003) Open Source (2000) Trouble with Showif and Search (1998) Search multiple fields (1997) Webstar 1.3.1 PPC (1997) test (2004) Server capacity (2003) A little syntax help (1997) Unexpected error (1997) Bug Report, maybe (1997) Extracting URL (2007) [WebDNA] MD5 Hash issue (2009) Lookup within a Search (2005) Heads up, cookies *may* be outlawed in Europe (2001) Using Applescript to process WebCatalog functions (1998) list/menus (2000) Multiple Pulldowns (1997) Extended [ConvertChars] (1997) Harvesting invalid email addresses from bounced emails??? (2000) PHP Live (2005)