David, email me off-list for help on this.

Cheers!

Peter Tilbrook ([EMAIL PROTECTED])
Project Officer 
Strategic Development 
Australian Building Codes Board 
GPO Box 9839 
CANBERRA ACT 2600 

Telephone: (02) 6213 6731 
Facsimile: (02) 6213 7287


-----Original Message-----
From: David Notik [mailto:dave@;digital202.com]
Sent: Thursday, 24 October 2002 9:03 AM
To: CF-Talk
Subject: Search functionality: Verity, LIKE operator, or what?


Hi all:
 
I haven't posted to this list for awhile.  I used to post all the time,
and used to write the TipWorld ColdFusion tips many of you received.
Good to be back in the mix.
 
My question:
 
I built a document management system of sorts.  I have all the files in
a directory. there's a database record for every file with fields such
as: title, filename, description, keywords, and more.  The filename
field references the actual physical file and it's all very simple.
 
So now I want to provide the ability to search the files. with a twist.
 
I have a box where the user can type in keywords.  I could then write a
query which uses the LIKE operator many times and searches the various
relevant fields for that keyword.  But is that really the most efficient
way?
 
I know I could create a collection.  But doesn't a collection only
search the actual content of the physical files indexed in the
collection?  Meaning my title, description, and keywords fields (etc.)
wouldn't be relevant.
 
What do I do?
 
That's question one. but then let's take it a step further:
 
I have a securitytype associated with each file record, which denotes
whether the logged in user has access to the file.  When a user searches
for files, I DO NOT want to display files he does not have access to.  I
can easily accomplish this using my own query (LIKE operator and a WHERE
clause that only pulls records they have access to), but if I do it the
verity way, is this possible?
 
Just trying to decide the best way to go about this.
 
I am using ColdFusion Pro MX, SQLServer 2000.
 
--D
 
###################
David Notik
Digital202, LLC
Imagination gone digital.
Web:  <http://www.digital202.com/> www.digital202.com
E-mail:  <mailto:dave@;digital202.com> [EMAIL PROTECTED]
Office: (206) 575-1717
Mobile: (206) 351-3948
###################
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to