cancel
Showing results for 
Search instead for 
Did you mean: 

(Bug?) LuceneIndexerImpl2.indexProperty() throws exception

turgayz
Champ in-the-making
Champ in-the-making
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. <index enabled="false" /> in the model definition file.

But then, when the "ftsIndexerTrigger" runs, it throws an exception at this line (Class LuceneIndexerImpl2):
for (String strValue : DefaultTypeConverter.INSTANCE.getCollection(String.class, value))

I tried to fix this by adding the following:
if(!index)
    return false;

after getting the "index" attribute:
index = propertyDef.isIndexed();

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.
1 REPLY 1

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

If this is specified as not to be indexed - then the background indexer should not index it. This is a bug.

Did you set it to be index non atomically? It should have had the error earlier?

http://issues.alfresco.com/browse/AR-942

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.)

Thanks for pointing this out.

Regards

Andy