<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Solr backoffice (PCM)Facet value displaying as an Object- in CRM and CX Q&amp;A</title>
    <link>https://community.sap.com/t5/crm-and-cx-q-a/solr-backoffice-pcm-facet-value-displaying-as-an-object/qaa-p/12230893#M423160</link>
    <description>&lt;P&gt;screenshot here&lt;/P&gt;</description>
    <pubDate>Sun, 11 Oct 2020 01:22:53 GMT</pubDate>
    <dc:creator>former_member692234</dc:creator>
    <dc:date>2020-10-11T01:22:53Z</dc:date>
    <item>
      <title>Solr backoffice (PCM)Facet value displaying as an Object-</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/solr-backoffice-pcm-facet-value-displaying-as-an-object/qaq-p/12230892</link>
      <description>&lt;P&gt;Hi Expert,&lt;/P&gt;
  &lt;P&gt;i am adding facets in backoffice (PCM) view but facets values are displaying as an object. here is the code .&lt;/P&gt;
  &lt;P&gt;could you please let me know what i am missing here? instead of actual value object is getting displayed.&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;public class RCChannelTypeFacetDisplayProvider extends AbstractFacetValueDisplayNameProvider {
    private static final Logger LOG = LoggerFactory.getLogger(RCChannelTypeFacetDisplayProvider.class);
    private EnumerationService enumerationService;
    private CommonI18NService commonI18NService;

    public RCChannelTypeFacetDisplayProvider() {
    }

    @Override
    public String getDisplayName(SearchQuery searchQuery, IndexedProperty indexedProperty, String facetValue) {
        // Locale locale = this.getLocale(searchQuery.getLanguage());
        final List&amp;lt;RCIcpCbpEnum&amp;gt; channelTypeEnums = getEnumerationService().getEnumerationValues(RCIcpCbpEnum.class);
        final Optional&amp;lt;RCIcpCbpEnum&amp;gt; statusValue = channelTypeEnums.stream()
                .filter(value -&amp;gt; value.getCode().equalsIgnoreCase(facetValue)).findAny();
        if (statusValue.isPresent()) {
            return getEnumerationService().getEnumerationName(RCPartTypeEnum.valueOf(facetValue.toUpperCase()));
        }
        return facetValue;

    }&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Oct 2020 01:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/solr-backoffice-pcm-facet-value-displaying-as-an-object/qaq-p/12230892</guid>
      <dc:creator>former_member692234</dc:creator>
      <dc:date>2020-10-11T01:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Solr backoffice (PCM)Facet value displaying as an Object-</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/solr-backoffice-pcm-facet-value-displaying-as-an-object/qaa-p/12230893#M423160</link>
      <description>&lt;P&gt;screenshot here&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 01:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/solr-backoffice-pcm-facet-value-displaying-as-an-object/qaa-p/12230893#M423160</guid>
      <dc:creator>former_member692234</dc:creator>
      <dc:date>2020-10-11T01:22:53Z</dc:date>
    </item>
  </channel>
</rss>

