Skip to main content
Participating Frequently
November 20, 2012
Question

Please help me understand Categories within Verity search (CF8)

  • November 20, 2012
  • 1 reply
  • 736 views

I'm not sure why I can't understand how categories work within Verity, but the documentation isn't helping much, and web searches are yielding anything either.

Here's what I'm doing; I have a folder that contains a few subfolders...in these are PDF files.  I have a collection setup that recursively indexed all documents, and allows me to search for them, no problem.  This works.

What I'd like to do is create categories in this collection that correspond to the folders the files are in.  For example, the structure could be:

Main Folder

   -Folder 1

   -Folder 2

   -Folder 3

      -Folder A

      -Folder B

So the category names would be Folder 1, Folder 2, Folder 3, etc.

So when I search, I can allow the users to select checkboxes to search only certain categories.

My question is, how do I do this when I re-index the collection?  Am I going to be forced to create a separate collection for EVERY category and subcategory? And then search multiple collections when using CFSEARCH?

Very confused, thanks in advance for any help

T

This topic has been closed for replies.

1 reply

Miguel-F
Inspiring
November 20, 2012
Participating Frequently
November 20, 2012

Yes, I did, but I still don't understand.  If I have a collection called "manuals", then folders indexed like "License" and "Procedures", Do I have to create:

<cfindex collection="ManualsLicense"

    action="update"

    extensions=" .pdf"

    recurse="Yes"

    category="license"

    categoryTree="manuals/license">

AND

<cfindex collection="ManualsProcedures"

  action="update"

  extensions=" .pdf"

  recurse="Yes"

  category="procedures"

  categoryTree="manuals/procedures">

I'm just not understanding how Verity knows what category my documents are in.  Right now, they're just in different folders.

Miguel-F
Inspiring
November 20, 2012

To be honest, I have not messed with Verity collections for a while.  Will it not allow you to update the same collection with different params.  Something like this:

<cfindex collection="Manuals" 

    action="update" 

    type="path"

    key="C:\inetpub\wwwroot\manuals\license" 

    urlpath="http://localhost/manuals/license"

    extensions = ".pdf"

    recurse="Yes"

  categoryTree="manuals/license"

    category="license">

AND

<cfindex collection="Manuals" 

  action="update" 

  type="path"

  key="C:\inetpub\wwwroot\manuals\procedures" 

  urlpath="http://localhost/manuals/procedures"

  extensions = ".pdf"

  recurse="Yes"

  categoryTree="manuals/procedures"

  category="procedures">

Or does the "update" action replace and not add to the index?