Re: [WebDNA] Re: Search Site
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102217
interpreted = N
texte = eddie@thinksite.com wrote:> 1. Windows Server 2003.> 2. Dedicated as in I have full control of the server, but there are many > sites on it.> 3. I really don't understand sandboxes, so I'm assuming no.Personally, I think the idea of a solution for this needsto be addressed as a more core feature addition of WebDNA. It issomething that comes up and is something that is noteasily performed within the current tool set.Anyway,I am more fluid with some ideas on a *nix machine.. butdepending on how many files and how large of files, youcould probably work up a recursive query in your site directoryusing listfiles. Then, at this point, you have thefilename to where you could use other tools to do thesearch within that file.On a nix machine, I would do a[shell]grep ...[/shell] or something. Infact you could dothat shell grep for the entire search and not use listfiles. ;-)I don't know if DOS has anything like a grep.If there is not a good DOS like grep/search thing on Windows,I guess you could [include] the [filename] in the new [findstring]tag to perform the search (then do some math to display the snippentof results (and link to the page) that contains a match). But I am going to make a guess that this solution would be a bit difficult to make work exactly how you would like.Whatever solution you would find, it would ultimately be best to storethe page information in a database where dynamic user-driven searcheswould be fast and accurate and *almost* realtime.But yes, it would be nice to do:[searchsite find=[_keywords]]!..may be a good function library project for someone! ;-)DonovanDonovan D. Brooke PH: 1 (608) 770-3822------------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958
Associated Messages, from the most recent to the oldest:
eddie@thinksite.com wrote:> 1. Windows Server 2003.> 2. Dedicated as in I have full control of the server, but there are many > sites on it.> 3. I really don't understand sandboxes, so I'm assuming no.Personally, I think the idea of a solution for this needsto be addressed as a more core feature addition of WebDNA. It issomething that comes up and is something that is noteasily performed within the current tool set.Anyway,I am more fluid with some ideas on a *nix machine.. butdepending on how many files and how large of files, youcould probably work up a recursive query in your site directoryusing listfiles. Then, at this point, you have thefilename to where you could use other tools to do thesearch within that file.On a nix machine, I would do a
[shell]grep ...[/shell] or something. Infact you could dothat shell grep for the entire search and not use listfiles. ;-)I don't know if DOS has anything like a grep.If there is not a good DOS like grep/search thing on Windows,I guess you could
[include] the [filename] in the new
[findstring]tag to perform the search (then do some math to display the snippentof results (and link to the page) that contains a match). But I am going to make a guess that this solution would be a bit difficult to make work exactly how you would like.Whatever solution you would find, it would ultimately be best to storethe page information in a database where dynamic user-driven searcheswould be fast and accurate and *almost* realtime.But yes, it would be nice to do:[searchsite find=[_keywords]]!..may be a good function library project for someone! ;-)DonovanDonovan D. Brooke PH: 1 (608) 770-3822------------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958
Donovan Brooke
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:
Multiple catalog databases and showcart (1997)
Protecting webdelivery (1997)
RE: [WebDNA] Digital Ocean /WebDNA is not configured to accept (2019)
Bug or syntax error on my part? (1997)
Secure server question (1997)
Smart caching problems with 2.1b3? (1997)
Resume Catalog ? (1997)
Apache and Webdna (2005)
Stopping bad HTML propagation ? (1997)
New global preference ... ??? (2000)
Paths (1998)
Country & Ship-to address & other fields ? (1997)
unable to launch acgi in WebCat (1997)
WebCatalog seems to choke on large (2meg) html files. (1998)
See [shell]s (2008)
ImageMagick not working trough Shell anymore (2005)
Here we go again... (2006)
'does not contain' operator needed ... (1997)
Product Value Changes (2000)
Finding max value for a field (1997)