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:
Protect vs Authenicate (1997)
Templates on Unix & CGI on Mac? (1997)
What is WebDNA (1997)
What happened to the archives? (1999)
Re:One more time (1997)
problems with WebCat-Plugin (1997)
RAM variables (1997)
[isfile] ? (1997)
webcatalog [date] bug...not (1999)
Looking for WebSTAR bomb at startup (2000)
NT vs Mac (1997)
Unix webcat perms & multiple versions of same db in cache issue (2000)
The USArea® Network web site ... (1997)
Custom Shipping Charges (1997)
WebCatalog 4.0 Users that want to talk to the Media.... (2000)
Out of the woodwork (2007)
Fun with Dates - revisited (1997)
WebCat2 - Getting to the browser's username/password data (1997)
[quantity] within formulas (1997)
Hiring: Web programmer in Seattle area (2000)