How do I add an invidual entry to a Verity collection?
As you know, the <cfindex> tag allows you to populate a Verity collection. This data can come from the file system (by using either a directory or just a file) or with a custom query.
Once the collection is populated, you do not need to clear the collection to do minor updates. You can use <cfindex> to add content as well. So for example, this code block will add a new file to the collection:
You can also use <cfindex> to remove an item as well. If the file used above was deleted, the following code should be used to keep the collection in sync:
This question was written by Raymond Camden.
It was last updated on April 18, 2006 at 6:58:41 AM EDT.
CFML Referenced
Categories
Comments
Comment made by cfug on April 25, 2006 at 9:11 PM
is the docs can be use as a query?
Comment made by Raymond Camden on April 25, 2006 at 10:51 PM
Sorry, but I don't understnad your question.