Re: full text search ?

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45737
interpreted = N
texte = Kenneth Grome wrote: > > This will do it: > > [listfiles path=path/to/folder/] > [showif [url][include file=path/to/folder/[filename]][/url]^[url]your > match string ...[/url]] > There's a match in the [filename] file.
> [/showif] > [/listfiles]Now that's what I call a cute trick! Thanks Kenneth! :-)There are a few minor porblems with it, though: *It's slow (try searching a couple of thousands of files - I did). *As far as I can see, you can only search the content of one folder at a time - and the search will always include *all* the files in that folder. *You don't have access to all the functions of the [SEARCH] command. A different approach would be to put the content of all the text files into a database. Then you can replace the files (if you still need them) with WebDNA templates getting their content from the database.It's crude - and not nearly as fun as Kenneth's solution. But the searches are much faster, and you can use all the search functions of WebDNA. Frank Nordberg http://www.musicaviva.com ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re(2): full text search ? followup (laurent pladys 2002)
  2. Re: full text search ? (Frank Nordberg 2002)
  3. Re: full text search ? (Kenneth Grome 2002)
  4. full text search ? (laurent pladys 2002)
Kenneth Grome wrote: > > This will do it: > > [listfiles path=path/to/folder/] > [showif [url][include file=path/to/folder/[filename]][/url]^[url]your > match string ...[/url]] > There's a match in the [filename] file.
> [/showif] > [/listfiles]Now that's what I call a cute trick! Thanks Kenneth! :-)There are a few minor porblems with it, though: *It's slow (try searching a couple of thousands of files - I did). *As far as I can see, you can only search the content of one folder at a time - and the search will always include *all* the files in that folder. *You don't have access to all the functions of the [search] command. A different approach would be to put the content of all the text files into a database. Then you can replace the files (if you still need them) with WebDNA templates getting their content from the database.It's crude - and not nearly as fun as Kenneth's solution. But the searches are much faster, and you can use all the search functions of WebDNA. Frank Nordberg http://www.musicaviva.com ------------------------------------------------------------- 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://webdna.smithmicro.com/ Frank Nordberg

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:

SKU lookup (1997) Frames and cart values (1998) Setting up WebCatalog with Retail Pro data (1996) MATH (1998) Using [Include] Context (1999) unique ascending numbers (2003) Multiple cart additions (1997) A quickie question (1997) PSC recommends what date format yr 2000??? (1997) WebCat2 as a chat server? (1997) RE: protect tag on NT (1997) Bug Report, maybe (1997) http or https? (2001) IE4.5 bug FYI (1999) Date Sorting (1997) Re:Emailer and encryption (1997) Online reference (1997) carriage returns in data (1997) HELP WITH DATES (1997) Error.html (1997)