AnsweredAssumed Answered

No search index when uploaded via CMIS and containing description text

Question asked by doppelkeks on Oct 15, 2015
After an upgrade from Alfresco 5.0.a CommunityEdition to 5.0.d some documents never get indexed by Solr4. These documents are based on a custom model ("cierp") and uploaded via CMIS 1.1. But only the documents containing a description text ("cm:description") don't get indexed. No error in the log files. Model-based documents without description text do get indexed, so no problems there. So we are able to upload documents without description text by CMIS to get them indexed. Afterwards we can add the text manually in Share and they are reindexed correctly.

In previous Alfresco versions with Solr1 there were no such problems.

Our custom cierp-model is a subtype of cm:content, from share-config-custom.xml:


<types>
    <type name="cm:content">
          <subtype name="cierp:doc" />
          <subtype name="cierp:erp" />
    </type>
    <type name="cierp:doc">
          <subtype name="cierp:erp" />
     </type>

     <type name="cm:folder">
     </type>

     <type name="trx:transferTarget">
           <subtype name="trx:fileTransferTarget" />
     </type>
</types>



This is a part of the CMIS properties (omitted date and unimportant parts):


cierp:vorgangsnr=Invoice_1111,
cierp:scanned=false,
cierp:kundliefnr=12345,
cierp:kundliefname=Lieferant GmbH,
cierp:sprache=de,
cm:categories=[workspace://SpacesStore/SpacesStore/962ae9c7-9c15-45a5-8aee-c007b9c88fc0],
cmis:objectTypeId=D:cierp:erp,
cmis:name=EX15850027.pdf,
cmis:createdBy=gerold,
cm:description=OUR DESCRIPTION TEXT,
cmis:secondaryObjectTypeIds=[P:cierp:vorgangsDaten, P:cierp:nummerDaten, P:cierp:reldocnamesHidden, P:cierp:serviceDaten, P:cm:generalclassifiable, P:cm:titled]


And this is the custom model:


<?xml version="1.0" encoding="UTF-8"?>
<model name="cierp:ciErpModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

  <description>Coolitalia-Model</description>
  <author>Elsbeth Hartmann</author>
  <version>1.0</version>

  <imports>
    <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
    <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
  </imports>

  <namespaces>
    <namespace uri="http://www.coolitalia.de/model/content/1.0" prefix="cierp" />
  </namespaces>

  <types>
    <type name="cierp:doc">
      <title>Coolitalia-Dokument</title>
      <parent>cm:content</parent>
    </type>

    <type name="cierp:erp">
      <title>Coolitalia-ERP-Dokument</title>
      <parent>cierp:doc</parent>
      <properties>
        <property name="cierp:kundliefname">
          <type>d:text</type>
        </property>
        <property name="cierp:sprache">
          <type>d:text</type>
        </property>
        <property name="cierp:vorgangsdatum">
          <type>d:date</type>
        </property>
      </properties>
      <associations>
        <association name="cierp:relatedDocuments">
          <title>Related Documents</title>
          <source>
            <mandatory>false</mandatory>
            <many>true</many>
          </source>
          <target>
            <class>cierp:erp</class>
            <many>true</many>
          </target>
        </association>
      </associations>
    </type>
  </types>

  <aspects>
    <aspect name="cierp:vorgangsDaten">
      <title>Coolitalia-ERP-Vorgangsdaten</title>
      <properties>
        <property name="cierp:vorgangsnr">
          <type>d:text</type>
        </property>
        <property name="cierp:scanned">
          <type>d:boolean</type>
          <default>false</default>
        </property>
      </properties>
    </aspect>
    <aspect name="cierp:nummerDaten">
      <title>Coolitalia-Nummerdaten</title>
      <properties>
        <property name="cierp:kundliefnr">
          <type>d:text</type>
        </property>
      </properties>
    </aspect>
    <aspect name="cierp:zahlungsDaten">
      <title>Coolitalia-Zahlungsdaten</title>
      <properties>
        <property name="cierp:banknr">
          <type>d:int</type>
        </property>
        <property name="cierp:auszugnr">
          <type>d:text</type>
        </property>
        <property name="cierp:freigabe">
          <type>d:text</type>
        </property>
        <property name="cierp:eingangsdatum">
          <type>d:date</type>
        </property>
      </properties>
    </aspect>
    <aspect name="cierp:kontaktDaten">
      <title>Coolitalia-Kontaktdaten</title>
      <properties>
        <property name="cierp:plz">
          <type>d:text</type>
        </property>
        <property name="cierp:ort">
          <type>d:text</type>
        </property>
        <property name="cierp:ansprpartner">
          <type>d:text</type>
        </property>
      </properties>
    </aspect>
    <aspect name="cierp:produktDaten">
      <title>Coolitalia-Produktdaten</title>
      <properties>
        <property name="cierp:seriennr">
          <type>d:text</type>
          <multiple>true</multiple>
        </property>
      </properties>
    </aspect>
    <aspect name="cierp:versandDaten">
      <title>Coolitalia-Versanddaten</title>
      <properties>
        <property name="cierp:packer">
          <type>d:text</type>
          <multiple>true</multiple>
        </property>
        <property name="cierp:packdatum">
          <type>d:date</type>
        </property>
      </properties>
    </aspect>
    <aspect name="cierp:serviceDaten">
      <title>Coolitalia-Servicedaten</title>
      <properties>
        <property name="cierp:servicenr">
          <type>d:text</type>
        </property>
      </properties>
    </aspect>
    <aspect name="cierp:reldocnamesHidden">
      <title>Coolitalia-UnsichtbareRelatedDocNamen</title>
      <properties>
        <property name="cierp:hiddenReldocnames">
          <type>d:text</type>
        </property>
      </properties>
    </aspect>
  </aspects>
</model>



Please, can somebody help to fix this problem? Many thanks in advance.

Elsb.

Outcomes