for example if in your cfindex you enter
<cfindex category="cat1, cat2, cat3"...
then that will put the document in categories of 'cat1' and ' cat2' and ' cat3'
it needs to be like:
<cfindex category="cat1,cat2,cat3".
Main Topics
Browse All TopicsI am a little perplexed by this and I must be doing something wrong. I am running CFMX7 on RE4 if that helps.
I have created several verity collections and enabled category support for them. I have indexed my content and by doing a dump can see I have 46 records and that my categories are set properly.
When I do a cfsearch and include category=xxx I get zero results.
When I do a cfsearch and DO NOT include the category tag I get results.
Even at the most simplistic programming level it doesnt work. Here is a basic idea of what I am trying to do:
=====returns no results======
<cfsearch collection="meetings_data"
<cfoutput>
#get_info.summary#<br>
</cfoutput>
<cfdump var="#get_info #">
=====returns 1 results======
<cfsearch collection="meetings_data"
<cfoutput>
#get_info.summary#<br>
</cfoutput>
<cfdump var="#get_info #">
The dump does show that the CATEGORY for the record is boston. I dont get it. I must be missing something simple.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
No that isn't the issue. My code is the following:
<cfindex
query="get_cssi_meetings"
collection="meetings_data"
action="Refresh"
type="Custom"
key="cssi_key"
title="cssi_name"
body="cssi_name"
custom1 = "cssi_name"
custom2 = "cssi_link"
category ="boston">
As I stated I can do a dump on the collection and see the proper records and can see that boston is listed as the category.
However, when I do s CFSEARCH and specify a category I get no results. When I do the same search and remove the category I get results. Even though the collection has categories enabled and a dump of the collection verifies the data.
Have you read through this article yet?
http://www.adobe.com/devne
From the way you are describing it it sounds like you are doing eveything correctly, The only thing I can think of is maybe it doesn't work well with custom collections, perhaps the category/categorytree functionality only works with file/path colections or something. I've used categories with file collections but never a custom one...I am going to test to see If I can get it to work a little later today and I'll get back to you.
Thank you for the follow up SBennett. Any follow-up would be appreicated as I sadly don't have the time today to test it on a file collection to see if there is any difference.
I did check with:
http://livedocs.adobe.com/
and I did not notice any restriction for using categories on differing types. I am as bewildered as you are. One would think the collection and index would not work if that was the case. Sadly it isn't. I'll play around some more and see what I can find too.
Well I've done more digging. I don't know what the problem is but it now works. I deleted and recreated the collection in the CFADMIN. That didn't work. So I deleted the collection in CFADMIN, restarted CF and manually using tags and not the CFADMIN created the collection. That works. Odd. Very odd.
This happened to me too, and I couldn't find much in the way of help or documentation about Verity (other than the basics). What seemed to work in the end, was not only deleting the collection, but actually deleting and renaming it. My theory is that it has something to do with creating a query without categories, then deleting it and re-creating it WITH categories. It goes a bit wonky. Hope this helps!
How does it work if I did what someone suggested before they suggested and forgot to check the post until now? Can I assign partial points?
Also as a side note I only had to delete not delete and rename as was suggested. The deletion however did not work as a fix until CF was restarted which was not suggested. Can't explain it but that's what it took to work.
General rules of thumb for point giving:
If an expert posts the correct answer, you should award them the points with a grade of "A".
If an expert gives most of an answer but maybe you had to figure alittle bit out for your self then give them the points with a "B"
If an expert gives you a little bit of information that leads you to the correct answer, but requires you to do a lot of research your self, then give them the points with a "C".
If no one helps you get the answer in any way, or you figure out the answer and are the first one to post a comment with the answer, then you can close the question and get your points refunded.
In this case jeninbrighton posted the correct answer before you did, so it would be courteous for you to give them the points even though you may have already figured it out on your own but forgot to wrap this question up when you figured it out.
Business Accounts
Answer for Membership
by: SBennettPosted on 2007-09-21 at 16:15:50ID: 19939794
Make sure that in your code that indexes the content, that it does not use any spaces in the category field. If there is a space then that will cause problems.