cancel
Showing results for 
Search instead for 
Did you mean: 

Indexed residual properties

mrgrechkinn
Champ in-the-making
Champ in-the-making
Hello,

How can I index a residual properties in Alfresco?

Regards,
Eugene
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
How could that work?   One of the property definitions is whether its indexed!

mrgrechkinn
Champ in-the-making
Champ in-the-making
Interesting, but if you look at the method isIndexedOrStored (QName propertyQName) of org.alfresco.solr.AlfrescoSolrDataModel class, you can see comment
by default we would index a residual property (if they have a known prefix/uri ….)

I tried to add a residual property with a known prefix, but it's still not working. I am continued to study the issue and came to the class org.alfresco.repo.solr.SOLRTrackingComponentImpl, which has a method protected Map <QName, Serializable> getProperties (Long nodeId), in which we will return the desired properties of our nodes. And there are the following comment…
Residual properties are un-indexed -> break serlialisation
Therefore before had the opportunity to index the residual field.

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

The lucene sub-system indexes residual properties as text.

SOLR does not index residual properties - they are not sent from the repository.

Andy