I have posted this issue in the Solr sub-community, but I also noticed that there is basically zero activity there (first post in 8 months, no answers to other posts), so I am re-posting my issue in the main CF forum.
I am having difficulty getting categoryTree to populate with cfindex. I have created the collection with categories enabled, and the category column does indeed get populated. But try as I might, I cannot get the categoryTree column to populate. My indexing code is as follows:
cfindex(
type="custom",
autoCommit=true,
collection=arguments.collectionName,
action="Update",
key=arguments.key,
title=arguments.title,
body=arguments.body,
custom1=arguments.custom1,
custom2=arguments.custom2,
custom3=arguments.custom3,
custom4=DateConvert( 'Local2UTC', now() ),
category=arguments.categories,
categoryTree=arguments.categoryTree,
status="statusStruct");
The results of cfsearch do contain values in the category column, and listing the categories using new collection().categorylist();
shows the categories, but again no categoryTrees. I have deleted the collection and recreated it several times, including stopping the ColdFusion Add-On service, rebooting the computer (local dev, so I won't call it a server), and deleting the collection files. I have also created new collections with different names and paths, but I still have this issue every time I index any collection.
There seems to be very few people who have had such an issue since I have found very little online concerning the problem (namely, people saying it worked after they deleted and recreated the collection, and a bug submitted to Adobe - which was subsequently closed when Adobe couldn't replicate the issue). Does anyone have any ideas of what I can try?
For reference, this is CF 11 developer edition on Windows 7 using IIS for my server.