Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Unicorn sync doesn't rebuild search indexes #418

Open
nickwesselman opened this issue Jul 5, 2018 · 4 comments
Open

Unicorn sync doesn't rebuild search indexes #418

nickwesselman opened this issue Jul 5, 2018 · 4 comments
Assignees
Labels

Comments

@nickwesselman
Copy link
Contributor

The Unicorn Sync operation is supposed to rebuild search indexes. However a manual rebuild seems to be necessary in order for the Habitat site search to work.

https://github.com/SitecoreUnicorn/Unicorn/blob/master/src/Unicorn/Standard%20Config%20Files/Unicorn.config#L122

@nickwesselman nickwesselman added this to To do in Release for Sitecore 9.0 via automation Jul 5, 2018
@nickwesselman nickwesselman self-assigned this Jul 6, 2018
@nickwesselman nickwesselman moved this from To do to In progress in Release for Sitecore 9.0 Jul 6, 2018
@nickwesselman
Copy link
Contributor Author

This appears to be due to the fact that Unicorn does an incremental index update, which does not update the Solr schema:

Solr Error : ["undefined field newstitle"]

We likely need to introduce a full index rebuild to the build process. Perhaps a utility page / custom code that we push to the instance, execute and then remove? Or introduce SPE to Habitat. :-D

For now, I think the need to rebuild should just be documented.

@jeanfrancoislarente
Copy link
Member

@nickwesselman take a look at https://github.com/Sitecore/Sitecore.HabitatHome.Content/tree/develop/src/Project/Common/code/Utilities
and
https://github.com/Sitecore/Sitecore.HabitatHome.Content/blob/develop/gulpfile.js which does the Rebuild Indexes.

@nickwesselman
Copy link
Contributor Author

@jeanfrancoislarente nice, thanks! given that you have SXA and SPE in Habitat.Home, did you consider using SPE Remoting?

@jeanfrancoislarente
Copy link
Member

That's definitely deep in our backlog. I also want to do SXA Hostname (content) changes during deployment as well so SPE Remoting would be good for that as well...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants