On Tue, 16 Nov 2004, Dunson-Odusanya, Michael wrote:
Can/does htdig flag the file type (by file extension) and store it in the index?
No. It stores only the URL of the file.
I'd like to design a results page which would show how many PDFs, XLSs, DOCs, etc. that are in the result set.
In order to do something like this you would probably need to write some sort of wrapper that calls htsearch, handles result parsing, and generates the result page. In the parsing phase you could look at the extension on the filename in the URL to make a guess on file type. There are some examples of wrapper scripts in the Contributed Work section (e.g. ewswrap under Scripts).
Jim
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ ht://Dig general mailing list: <[EMAIL PROTECTED]> ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-general

