<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic (Bug?) LuceneIndexerImpl2.indexProperty() throws exception in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/bug-luceneindexerimpl2-indexproperty-throws-exception/m-p/58792#M36035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was trying to put a "Map" into a node property (See &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/viewtopic.php?t=3448" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/viewtopic.php?t=3448&lt;/A&gt;&lt;SPAN&gt;). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to put the Map into the node property, by marking the property as "not to be indexed, i.e. &amp;lt;index enabled="false" /&amp;gt; in the model definition file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But then, when the "ftsIndexerTrigger" runs, it throws an exception at this line (Class LuceneIndexerImpl2):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;for (String strValue : DefaultTypeConverter.INSTANCE.getCollection(String.class, value))&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to fix this by adding the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;if(!index)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;after getting the "index" attribute:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;index = propertyDef.isIndexed();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;But, this is a temporary fix for us, please advise if this is in fact a bug and should be fixed by Alfresco, or if we need to make something on our client code to make the indexer job run correctly in such a case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Sep 2006 14:07:04 GMT</pubDate>
    <dc:creator>turgayz</dc:creator>
    <dc:date>2006-09-27T14:07:04Z</dc:date>
    <item>
      <title>(Bug?) LuceneIndexerImpl2.indexProperty() throws exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bug-luceneindexerimpl2-indexproperty-throws-exception/m-p/58792#M36035</link>
      <description>Hi,I was trying to put a "Map" into a node property (See http://forums.alfresco.com/viewtopic.php?t=3448). I managed to put the Map into the node property, by marking the property as "not to be indexed, i.e. &amp;lt;index enabled="false" /&amp;gt; in the model definition file.But then, when the "ftsIndexerT</description>
      <pubDate>Wed, 27 Sep 2006 14:07:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bug-luceneindexerimpl2-indexproperty-throws-exception/m-p/58792#M36035</guid>
      <dc:creator>turgayz</dc:creator>
      <dc:date>2006-09-27T14:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: (Bug?) LuceneIndexerImpl2.indexProperty() throws exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bug-luceneindexerimpl2-indexproperty-throws-exception/m-p/58793#M36036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is specified as not to be indexed - then the background indexer should not index it. This is a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you set it to be index non atomically? It should have had the error earlier?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://issues.alfresco.com/browse/AR-942" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-942&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your fix is along the right lines. It should return true. (The fact that it is not indexed does not mean a background index is required.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for pointing this out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 15:29:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bug-luceneindexerimpl2-indexproperty-throws-exception/m-p/58793#M36036</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2006-09-28T15:29:34Z</dc:date>
    </item>
  </channel>
</rss>

