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 topof the list -- which means that any records that match in *both* groups aredisplayed first, followed by items with fewer hits. Basically, multiple'hits' in a single record cause that record to bubble to the top of thelist. This is similar to how the search engines do it. This does notsound 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, andthen at the end of the template you could do [closedatabase db=[cart].db]and then [deletefile file=[cart].db]. This might work faster than youthink. 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 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>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 topof the list -- which means that any records that match in *both* groups aredisplayed first, followed by items with fewer hits. Basically, multiple'hits' in a single record cause that record to bubble to the top of thelist. This is similar to how the search engines do it. This does notsound 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, andthen at the end of the template you could do [closedatabase db=
[cart].db]and then [deletefile file=
[cart].db]. This might work faster than youthink. 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 | Typhoon619/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:
Search design (1997)
NT Manual (1997)
Where's Cart Created ? (1997)
Emailer Question (1998)
unusual search problem (1998)
ShowNext (1997)
WebCommerce: Folder organization ? (1997)
WebCatalog for Mac 2.0.1 Released (1997)
SV: Mass Mail (2000)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
New Command prefs ... (1997)
Revisit: speed test (2002)
WebDNA 6 Error (2004)
Me know logical no need (2002)
WebCatb15 Mac CGI -- [purchase] (1997)
getchars broken? (1997)
Emailer Set Up (1997)
[protect admin] (1997)
[Webcat 2]Next (1997)
Not much on today :( (2004)