cancel
Showing results for 
Search instead for 
Did you mean: 

Solr config for backoffice is missing

djboyd4715
Participant

SAP Commerce Cloud in Public Cloud: v2105

Solr config for backoffice -> SolrFacetSearchConfig is missing.

-----

when we were running 6.4 ( CCV1) there was Solr config for backoffice and it worked.

After we did an upgrade to v2105, we received errors, so I added the following to our local.properties

<!-- modules/search-and-navigation -->
<extension name='solrfacetsearchbackoffice' />
<extension name='solrserver' />
<extension name='solrfacetsearch' />
<extension name='backofficesolrsearch' />

<!-- modules/search-services -->
<extension name='searchbackoffice' />
<extension name='searchservices' />
<extension name='backofficesearchservices' />
<!-- extension name='searchprovidercssearchbackoffice' / -->
<!-- extension name='searchprovidercssearchservices' / -->

After doing a deployment on local, the "Solr config for backoffice" is not there.

Doing a code search, I located this text string in "pcmbackofficesamplesaddon -> resources -> pcmbackofficesamplesaddon -> import -> common -> common-addon-extra.impex.

But it only looks like it is referenced and never used.

Note, we have pcmbackofficesamplesaddon in the manifest addon section ( I did an ant addoninstall in my local )

Accepted Solutions (0)

Answers (3)

Answers (3)

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi David,

You're right, if you run system update and you wanted to import some project data from some of the extensions, you will need to select the extensions. Otherwise the impex codes from the extensions will not be picked up and executed.

Thanks!

djboyd4715
Participant
0 Kudos

Hello samuel.yang

After a bit of testing, I have found the issue - I believe.

When doing an update - either using HAC or ant, I needed to select the following:

{

"init": "Go",

"initmethod": "update",

"localizetypes": "true",

"pcmbackoffice_sample": "true",

"solrfacetsearch_sample": "true",

"solrfacetsearchbackoffice_sample": "true",

"backofficesolrsearch_sample": "true",

"solrserver_sample": "true",

"pcmbackofficesamplesaddon_sample": "true"

}

This applies all of the needed impex in order to create the "Solr config for backoffice" index.

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi David,

Did you mean the whole type definition of SolrFacetSearchConfig is not there in the backoffice or type is there, but items are missing?

If type is not there, you can run update system on local or use data migration on cloud to resolve the issue.

If type is there, but items are missing, you can even manually run the impex scripts on Hac to import the items.

djboyd4715
Participant
0 Kudos

Hello @Samuel Yang

To clarify,

  1. This is a local build
  2. Verifying the steps required to make this work when I do a deployment to the cloud
  3. I have done a deployment to our CCV2 D1 environment and see the same issue

To answer your question: the type is there but it is missing the item "Solr config for backoffice"

A bit more info here

When we moved from 6.4 to 2105, the pcm cockpit was not available, so I added the following to our localextension.xml

<!-- modules/backoffice-applications -->
<extension name='pcmbackoffice' />

Then I followed Enabling Solr Search ( at the end of this page, under Procedure, it calls out that there should be a Facet Search Configuration named: Solr Config for Backoffice ( when I do a full code search, I can not find this value anywhere, so not sure if it has changed or not available anymore or ?? ))

Next, I ran the following
ant customize

ant addoninstall

ant clean all

I then ran ant updatesystem using the following file

{
  "init": "Go",
  "initmethod": "update",
  "localizetypes": "true",
  "pcmbackoffice_sample": "true",
  "pcmbackofficesamplesaddon_sample": "true"
}

Then started up my local server

Looking in backoffice, here is what I have

1. There is a type: SnIndexConfiguration which has an item: backoffice

2. There is a type: SnIndexType which has an item: backoffice-product

3. There is a type: AsSimpleSearchProfile which has an item: backoffice-product-default

4. There is a type: AsSearchProfileAcivationSet which has an item: backoffice-product ( index type)

Now under Solr Facet Search Configuration -> Facet Search Configuration -> There is a type: SolrFacetSearchConfig which has my index items only for my catalog

Now under Solr Facet Search Configuration -> Indexed Types -> There is a type: SolrIndexType, which has my index types along with an item -> BackofficeProduct


But there is no item "Solr config for backoffice" under Solr Facet Search Configuration -> Facet Search Configuration. (This is what I am seeing on our cloud deployment ( when you run this index you get an error and PCM is not available ).

If I run the following impex: common-addon-extra.impex found under hybris -> backoffice-addons- -> pcmbackofficesamplesaddon

I get some errors around workflowTemplate ( this item does exist )

Like: cannot resolve value 'backofficeworkflowadmingroup,wfl_productManagementGroup', could not resolve item for wfl_PurchaseGroup

ruchibansal4
Explorer
0 Kudos

I am also facing the same issue. After my analysis, I have noticed that the backofficesolrsearch (<hybris home>\hybris\bin\modules\backoffice-framework) extension is missing in the 2105 and higher versions.