Dave,

FYI

You can add "custom1" and "Custom" 2 when doing an indexing operation on a
file.  I do this with an intranet ap that tracks manufacturing runs.  The
users upload PDF drawings of revisions on a  design and I add the primary
key and product line to custom 1 and 2.  Then, when I do a full index search
I can create a link that points them to the details on that item as well as
realated docs. I use something like this:

<cfindex collection = "NewProduct"
  action = "Update"
  type = "file"
  key = "#docpath#newprod\#file.serverfile#"
  custom1 = "#PutProd.np_id#"
  Custom2 = "#PutProd.prod_Type#">



Mark

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 8:26 AM
To: CF-Talk
Subject: RE: Verity: getting file size and date last modified from
CFSEARC H


> One way you might be able to achieve what you want is to
> make use of the custom1 and custom2 fields when indexing
> the collection. You may then have to add each file
> individually to the collection using <cfindex
> action="update"...> and you'd need to write a recursive
> function to find all the files in your directory structure.

I don't think that would work; you can only use CUSTOM1 and CUSTOM2 when
using CFINDEX with TYPE="CUSTOM", which can't be used to index files.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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