CollectionIndexweb()

Inserts/Updates a webpage into the collection. The URL is the unique key for each document. Each field in the document can be searched against. The index can still be searched while an update is happening, however the new documents will not be available in the search until this operation has completed. Note that all fields are treated as strings and will be indexed accordingly. The webpage will be automatically crawled for links and only internal links will be followed. A maximum of 100 URLs will be indexed at once. Each URL indexed will be logged to the main application log file.

Usage

STRUCTURE = CollectionIndexweb( collection, key, category, categorytree, urlpath, custommap )
Argument Summary
collection the name of the collection
key the full website URL to index. If a document already exists, it will be removed and replaced with this one. If 'query' present, this is the column where the file is found
category one or more categores, separated by a comma separated list. If 'query' present this is a column name [optional]
categorytree the categorytree for this particular document. If 'query' present this is a column name [optional]
urlpath the urlpath of this document. If 'query' present this is a column name [optional]
custommap a structure of custom atttributes that will be added to the document and indexed. The key of the structure element will be the field name and the value will be indexed. You can specify as many custom attributes as required. Each one is stored in the index as well. If 'query' then this is used for column names [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

CollectionIndexweb(
   collection=?, 
   key=?, 
   category=?, 
   categorytree=?, 
   urlpath=?, 
   custommap=?
);

Supports passing parameters as a structure using ArgumentCollection:

CollectionIndexweb( ArgumentCollection={
   collection : ?, 
   key : ?, 
   category : ?, 
   categorytree : ?, 
   urlpath : ?, 
   custommap : ?
} );

Extra

For more information on searching please visit Searching within OpenBD CFML