SEARCH-313: Add contentPropertyMetadata when isContentIndexedForNode=false

This commit is contained in:
Joel
2017-05-16 21:38:28 -04:00
parent 372f166fd3
commit 4a0cf3f3a7
@@ -2744,11 +2744,15 @@ public class SolrInformationServer implements InformationServer
}
else if (value instanceof ContentPropertyValue)
{
if (isContentIndexedForNode)
boolean transform = transformContentFlag;
if (!isContentIndexedForNode)
{
addContentPropertyToDocUsingCache(newDoc, cachedDoc, propertyQName,
(ContentPropertyValue) value, transformContentFlag);
transform = false;
}
addContentPropertyToDocUsingCache(newDoc, cachedDoc, propertyQName,
(ContentPropertyValue) value, transform);
}
else if (value instanceof MultiPropertyValue)
{
@@ -2774,11 +2778,15 @@ public class SolrInformationServer implements InformationServer
}
else if (singleValue instanceof ContentPropertyValue)
{
if (isContentIndexedForNode)
boolean transform = transformContentFlag;
if (!isContentIndexedForNode)
{
addContentPropertyToDocUsingCache(newDoc, cachedDoc, propertyQName,
(ContentPropertyValue) singleValue, transformContentFlag);
transform = false;
}
addContentPropertyToDocUsingCache(newDoc, cachedDoc, propertyQName,
(ContentPropertyValue) singleValue, transform);
}
}
}