title: Alfresco Lucene and CMIS
body: <p>We have this problem:</p>
  
  <p>yesterday we had custom xmlModel in Alfresco that had a custom type, extension of content with a property and some mandatory aspects.</p>
  
  <pre><code>&lt;type name="custom:myType"&gt;
       &lt;title&gt;Object&lt;/title&gt;
       &lt;parent&gt;cm:content&lt;/parent&gt;
       &lt;properties&gt;
          &lt;property name="custom:myProperty"&gt;
             &lt;type&gt;d:text&lt;/type&gt;
          &lt;/property&gt;
       &lt;/properties&gt;
       &lt;mandatory-aspects&gt;
          &lt;aspect&gt;custom:myAspect1&lt;/aspect&gt;
       &lt;/mandatory-aspects&gt;
    &lt;/type&gt;
  </code></pre>
  
  <p>now we have the urgent need to move the custom my Property  to a new aspect like this:</p>
  
  <pre><code> &lt;aspect name="custom:myAspect2"&gt;
       &lt;title&gt;new aspect&lt;/title&gt;
       &lt;properties&gt;
          &lt;property name="custom:myProperty"&gt;
             &lt;type&gt;d:text&lt;/type&gt;
             &lt;mandatory enforced='true'&gt;true&lt;/mandatory&gt;
          &lt;/property&gt;
       &lt;/properties&gt;
    &lt;/aspect&gt;
  </code></pre>
  
  <p>and the type is now:</p>
  
  <pre><code>&lt;type name="custom:myType"&gt;
   &lt;title&gt;Object&lt;/title&gt;
   &lt;parent&gt;cm:content&lt;/parent&gt;
   &lt;mandatory-aspects&gt;
      &lt;aspect&gt;custom:myAspect1&lt;/aspect&gt;
      &lt;aspect&gt;custom:myAspect2&lt;/aspect&gt;
   &lt;/mandatory-aspects&gt;
  </code></pre>
  
  <p></p>
  
  <p>After a full rebuild index, Lucene seems not to be considering these changes.
  So in Alfresco on new documents everythings fine, on the old ones, uplodaded with the old model and now reindexed, we have still the property, but missing the aspect.
  Is that normal behaviour? or some issue/bug.
  All of this is caused by our need to make CMIS queries on aspects, but we have some problems making queries on a native property of a type that is not part of an aspect in Alfresco. It seems only being possible to extract properties of an aspect and not of a content type. Is that true?
  thanks</p>
  
  <p>Thanks.</p>