I'm probably being to lazy here, but here goes. I will state now that I
have not run this code, but I am just trying to understand collections and
how they work.

I've created a content management system. A document entry has:
document_id, title, summary. Optionally the document has a url or
document_text or a file. The files are stored outside of the web root and
delivered by cfcontent.

I have a reindex action that does the following:
1) Destroy the collection.
2) Recreate the collection.
3) Select the set of 'approved' documents (so those that are visible to
end-users) and generate the collection entries via:
<cfindex 
        action="UPDATE" 
        collection="#request.site.siteidentifier#" 
        key="document_id" 
        type="CUSTOM" 
        title="database" 
        query="qry_select_approved_documents_for_verity" 
        body="url, summary, title, document_text, filename, section">
4) This is where the problem starts... I then check to see if a document
has an associated file and want to index the file. Documents are stored in
a tree hierachy : siteidentifier/section/filename. In theory I want to
index a file against a reference of its document_id. Documents have
associated with them specific 'rights' so all that a verity returns is not
always valid for that end user and I really need that document_id.

Theoretically I can convert the document path (if available) into a list
and then determine the section, the filename and from that derive the
document_id. This will probably mean setting up a number of extra indexes
on the database table for speeds sake.

So the question is, can I index a document that is stored offline, while
referencing against an document_id (not the filename or url). Please note
that the collection will already be using the document_id as part of a
previous index of type custom.

Answers in less than a thousand words and preferably not "no". :-)



Best Regards,

Adam Reynolds
ColdFusion Web Developer
ISMG Development, Unilever
London

( +44 20 7822 x5450
m: +44 7973 386620
*  [EMAIL PROTECTED]



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to