Re: Search Philosophy
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 39372
interpreted = N
texte = Donovan Brooke wrote:> > how would this be done???> 1)add field to the db [or are you talking a different .db?]It depends on your database design. It would probably be faster to havea seperate database with SKU, KEYWORDS as the only fields. But if yourdatabase is relatively small (both in # of fields and content of fields)you can just add a new field.> 2)[replace] the value of the uppercase field with the converted contents> of original field???When an item is added to the main database, process the record andappendor update the Keywords.db entry.> 3)[lookup] to the uppercase field.Bingo, then use [search] to locate just that record's information fordisplay. OR, if you have < 5-6 fields to return, use [lookup]'s on the main database ([search] is that much slower than [lookup]).> > how would you not look for spaces? just convert the> original field contents to no spaces in the uppercase field?I would store all of the keywords seperated by a delimiter which did not exist in the data (underscore or pipe being popular choices). Then always wrap the search term in the same delimiters if you want to eliminate substring matches (eg. _ANT_ won't match _ANTEATER_).You can even do a starts with search (e.g. _ANT will match both_ANT_ and _ANTEATER_).> > lastly, what is TMTOWTDI?? ;-)http://www.tuxedo.org/~esr/jargon/html/entry/TMTOWTDI.htmlJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Donovan Brooke wrote:> > how would this be done???> 1)add field to the db [or are you talking a different .db?]It depends on your database design. It would probably be faster to havea seperate database with SKU, KEYWORDS as the only fields. But if yourdatabase is relatively small (both in # of fields and content of fields)you can just add a new field.> 2)[replace] the value of the uppercase field with the converted contents> of original field???When an item is added to the main database, process the record andappendor update the Keywords.db entry.> 3)[lookup] to the uppercase field.Bingo, then use [search] to locate just that record's information fordisplay. OR, if you have < 5-6 fields to return, use [lookup]'s on the main database ([search] is that much slower than [lookup]).> > how would you not look for spaces? just convert the> original field contents to no spaces in the uppercase field?I would store all of the keywords seperated by a delimiter which did not exist in the data (underscore or pipe being popular choices). Then always wrap the search term in the same delimiters if you want to eliminate substring matches (eg. _ANT_ won't match _ANTEATER_).You can even do a starts with search (e.g. _ANT will match both_ANT_ and _ANTEATER_).> > lastly, what is TMTOWTDI?? ;-)http://www.tuxedo.org/~esr/jargon/html/entry/TMTOWTDI.htmlJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
John Peacock
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:
expired beta (1997)
Part 2 - [showif] if variable exists (1998)
printing twice? and fix (1997)
RE: [WebDNA] Help me install (WebDNA 7 fastcgi install on Lion (2012)
Location of Browser Info.txt file (1997)
RE: [WebDNA] Good advise on [Showif] or alternative... (2012)
[OT] Who's got a cool link (2002)
Question... (2002)
Just Testing (1997)
WEBCAT HIERARCHY (1999)
psst (1997)
virtual domain service (1997)
Webstar 1.3.1 PPC (1997)
Possible Bug in 2.0b15.acgi (1997)
WebCatalog2 Feature Feedback (1996)
[WebDNA] WebDNA and Facebook (2009)
Problems getting parameters passed into email. (1997)
automating txt downloads for conversion to webcat db (2006)
Wrapping text (1998)
Re1000002: Setting up shop (1997)