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:
Replace with Producteditor.tpl (2000)
Error Lob.db records error message not name (1997)
SiteGuard Admin Feature ? (1997)
Selected Item in Pop-down (2003)
WebCatalog2 Feature Feedback (1996)
creating a ShipCosts database (1997)
Fw: html pages not working (2003)
[date format] w/in sendmail (1997)
multi-paragraph fields (1997)
RE: Formulas.db + Users.db (1997)
Couple of questions (1999)
Web Catalog and Net Cloak (1998)
Help! WebCat2 bug (1997)
WebDNA Intranet Edition release (2002)
page redirect in webDNA (1997)
WebCat2 - Getting to the browser's username/password data (1997)
Re[2]: Re[3]: Problem with new formvariables (2000)
set header in DB (no cart) (2003)
Setting up shop (1997)
Running WebCat from a CD-ROM (1997)