AnsweredAssumed Answered

Categories: Own classification and lucene search

Question asked by ironman77 on Feb 27, 2008
Latest reply on Feb 28, 2008 by rivarola

following this wiki article (and using alfresco-community-2.1): [

i tried to add my own classification aspect. This includes the following steps:

1. Add a new aspect:

<aspect name="cm:workEquipment">
   <title>Work Equipment</title>
      <property name="cm:workEquipment">
         <index enabled="true">

Following the wiki article, i extended cm:classifiable.

2. Adding a new node to cm:categoryRoot (Store: workspace://SpacesStore)


Using the CategoryService im am able to add new RootCategories and Categories beneath this node.

Searching via lucene for categories does work:


3. Adding a new document with the aspect cm:workEquipment and the property cm:workEquipment which contains a link to my category test123.

The following lucene search does not work:


It returns a empty result.

That leeds to some questions:

1. What is the weak link mentioned in the wiki between the aspect and the classification?
Assumption: apsect name cm:workEquipment , classification name cm:workEquipment
2. Does the namespace prefix needs to be equal, for example cm or could the aspect have another namespace?
3. Why does the query with member has no results? What is my setup error?