cancel
Showing results for 
Search instead for 
Did you mean: 

custom meta category search

nuga
Champ in-the-making
Champ in-the-making
I've created my own custom aspect
   
<aspect name="cm:cropContent">
           <title>Crop associated Web Content Item </title>
            <properties>
               <property name="cm:crop">
                  <type>d:category</type>
                  <mandatory>true</mandatory>
               </property>
            </properties>
        </aspect>

Once I've added this content item.  its not clear how to construct the lucene query to search for a custom metadata where a category has been associated

Ex: I add the custom aspect to a piece of content
I set the custom metadata field of crop to the category of "ASIA' which is one of the default categories that is created

If I construct a lucene query to search for it, i get nothing
"PATH:\"/cm:generalclassifiable/cm:Regions/cm:ASIA/member\"";

but if i set the actual category field to ASIA and perform the same search again I find the content node.  what is the proper way to perform a category based query to find a category in a custom piece of metadata
2 REPLIES 2

nuga
Champ in-the-making
Champ in-the-making
is the problem i'm describing clear?
or is it just that it can't be done?

andy
Champ on-the-rise
Champ on-the-rise
Hi

Use

"PATH:\"/cm:cropContent/cm:Regions/cm:ASIA/member\"";

Andy