mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
[SEARCH-1960]
applied patch for including content value from cachedDoc only if the contentProperty has a fieldname in solr.
This commit is contained in:
@@ -2367,13 +2367,19 @@ public class SolrInformationServer implements InformationServer
|
||||
|
||||
String transformationStatusFieldName = getSolrFieldNameForContentPropertyMetadata(propertyQName,
|
||||
AlfrescoSolrDataModel.ContentFieldType.TRANSFORMATION_STATUS);
|
||||
if (transformationStatusFieldName != null){
|
||||
newDoc.addField(transformationStatusFieldName, cachedDoc.getFieldValue(transformationStatusFieldName));
|
||||
}
|
||||
String transformationExceptionFieldName = getSolrFieldNameForContentPropertyMetadata(propertyQName,
|
||||
AlfrescoSolrDataModel.ContentFieldType.TRANSFORMATION_EXCEPTION);
|
||||
if (transformationExceptionFieldName != null){
|
||||
newDoc.addField(transformationExceptionFieldName, cachedDoc.getFieldValue(transformationExceptionFieldName));
|
||||
}
|
||||
String transformationTimeFieldName = getSolrFieldNameForContentPropertyMetadata(propertyQName,
|
||||
AlfrescoSolrDataModel.ContentFieldType.TRANSFORMATION_TIME);
|
||||
if (transformationTimeFieldName != null){
|
||||
newDoc.addField(transformationTimeFieldName, cachedDoc.getFieldValue(transformationTimeFieldName));
|
||||
}
|
||||
|
||||
// Gets the new content docid and compares to that of the cachedDoc to mark the content as clean/dirty
|
||||
String fldName = getSolrFieldNameForContentPropertyMetadata(propertyQName,
|
||||
|
Reference in New Issue
Block a user