Verity is a very powerful 'full text' search tool, which can handle and index a wide variety of file formats.
The version that ships with CF is a slightly limited in that it only has provision for only two structured fields (Custom 1 & 2).
CF accesses verity through the following tags :
CFCollection
CFIndex
CFSearch
CFCollection provides the maintainence functionality
CFIndex provides the mechanism to add/modify/delete entries
CFSearch provides a way of getting the documents back
How to set up a collection.
Creating a collection can be done either throught the Verity option in the CF Administrator or by using CFCollection with a 'create' action.
When you index a path, you can specify the file types to be indexed (obviously not needed when you do a single file.)
[Red]!!!! VERY IMPORTANT !!!!![/Red]
Once a file is indexed, it MUST NOT be moved or renamed, if it is, verity will still find the index entries, but you won't be able to retreive the file.
<CFSEARCH
name = "GetResults"
collection = "#SearchCollection#"
criteria = "#Form.Criteria#">
This return a query with the following contents
Score - a numeric value (0 to 1)that represents the relavence of the record (multiply by 100 to give a %).
Title - The title of the Document (file) eg the title that is set as a property in word.
Summary - an abstract of the document (the first paragraph or upto the first 500 characters).
Key - the name and location of the file (url)
Custom1 - User defined content that was added during the CFIndex routine
Custom2 - User defined content that was added during the CFIndex routine
All of the above are accessable as variables from a normal CFQuery
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.