(Bug?) LuceneIndexerImpl2.indexProperty() throws exception
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 10:07 AM
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):
I tried to fix this by adding the following:
after getting the "index" attribute:
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.
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.
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2006 11:29 AM
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
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
