Yep you can do that too, with CFCollection. From the on-line help:

CFCOLLECTION
The CFCOLLECTION tag allows you to create and administer Verity collections.

Syntax
<CFCOLLECTION ACTION="CREATE" or "REPAIR" or "DELETE" or "OPTIMIZE" or
     "MAP"
    COLLECTION="collection_name"
    PATH="path_of_verity_directory"
    LANGUAGE="English" or "German" or "Finnish" or "French" or "Danish" or
     "Dutch" or "Italian" or "Norwegian" or "Portuguese" or "Spanish" or
     "Swedish">

ACTION
Required. Specifies the action to perform:

CREATE -- Creates a new collection using the specified path and optionally
specified language. 
REPAIR -- Fixes data corruption in the collection. 
DELETE -- Destroys the collection. 
OPTIMIZE -- Purges and reorganizes data for efficiency. 
MAP -- Assigns an alias to an existing Verity collection. 
COLLECTION
Required. Specifies a collection name or an alias if the ACTION is MAP.

PATH
Required for CREATE and MAP. Specifies a path to the Verity collection. The
effect of the PATH attribute depends on the ACTION that you specify.


 ACTION  What happens?  
CREATE

 CFCOLLECTION creates a directory for the use of Verity. The directory path
is composed of the directory path specified in the PATH attribute with the
name specified in the COLLECTION attribute appended to it. Thus, the full
directory path is "path_name\collection_name\." For example, if the path
name is "C:\Col\," and the collection name is "myCollection," the full
directory path is "C:\Col\myCollection\."  
MAP

 The MAP action provides a name with which ColdFusion can reference an
existing collection. This name is specified with the COLLECTION attribute.
It is an alias for the collection, which can be used in CFINDEX, and to
re-instate a collection after you have re-installed ColdFusion. The
directory path specified with the PATH attribute is the full path name of
the Verity directory. Therefore, to reference the directory created in the
previous example, specify "C:\Col\myCollection\."  


LANGUAGE
Optional for CREATE. To use the LANGUAGE attribute you must have the
ColdFusion International Search Pack installed. Valid entries are:

English (default) 
German 
Finnish 
French 
Danish 
Dutch 
Italian 
Norwegian 
Portuguese 
Spanish 
Swedish 
Usage
CFCOLLECTION works at the collection level only. To add content to a
collection, use CFINDEX. 

Note the following regarding mapped collections: 

Mapping allows you to assign an alias to a Verity collection created by a
tool other than ColdFusion. 
The ACTION, COLLECTION, and PATH attributes are required. 
The path must point to a valid Verity collection; mapping does not validate
the path. 
Deleting a mapped collection unregisters the alias; the base collection is
not deleted. 


hth,
larry

--
Larry C. Lyons
ColdFusion/Web Developer
Certified Advanced ColdFusion 5 Developer
EBStor.com
8870 Rixlew Lane, Suite 204
Manassas, Virginia 20109-3795
tel:   (703) 393-7930
fax:   (703) 393-2659
Web:   http://www.ebstor.com
       http://www.pacel.com
email: [EMAIL PROTECTED]
Chaos, panic, and disorder - my work here is done.
--

> -----Original Message-----
> From: Rick Eidson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 12:51 PM
> To: CF-Community
> Subject: RE: Verity
> 
> 
> Can't you create the Collection with code? For those of us 
> that don't have
> access to the Admin.
> 
> Rick
> 
> -----Original Message-----
> From: Kevin Schmidt [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 11:58 AM
> To: CF-Community
> Subject: RE: Verity
> 
> 
> The simple answer: Yes you can. 
> 
> First you must create a collection in the admin.  Once that 
> is done you
> could use code like this.
> 
> You just need to have the query.
> 
> <cfset type = "job">
> 
> <cfindex 
>       query="getjobs"
>       collection="joblistings"
>       type="custom"
>       action="refresh"
>       key="categoryid"
>       title="title"
>       body="description"
>       custom1="job"
>       >
> 
> -----Original Message-----
> From: Scott Raley [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, May 01, 2002 11:51 AM
> To: CF-Community
> Subject: Verity
> 
> Does anyone know ifyou can use the verity that comes with CF5 
> to search
> through
> a database?
> 
> 
> 
> 
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

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

Reply via email to