CFDIRECTORY can only give you a file listing, along with some additional
file information such as size and date last modified.  You'd need to read
each of those html files using CFFILE and build a query of your own, placing
the file contents into rows of the table.  You could cache this query, I
suppose, if it doesn't consume too much memory (just a few files?),
otherwise I would think if you don't want to use Verity or another indexing
server such as the one provided with IIS, then you may be better off using
CFDIRECTORY and CFFILE to build a database containing the file contents,
then query the database.

Jim


----- Original Message -----
From: "Jason Larson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 10:35 AM
Subject: Using CFDirectory to Search html files


> I was wondering if some of you can give me a hand. I have a directory full
> of html files that are produced by a cgi script. I want to be able to
search
> the html files without using a verity search. Is it possible to query the
> contents of the html files using cfdirectory then search that query
produced
> by cfdirectory with a search string? Any other suggestions, in how to
> accomplish this?
>
> Thanks for your help
> Jason Larson
> [EMAIL PROTECTED]
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to