0

In the image below you can see how the search index for a sitecore item looks like before and after a Smart Publish.

On the left is what I get when I recently did a Rebuild or a Republish and on the right is what I get when I did a Smart Publish.

Is this a known issue? I'm working with Azure Search and Sitecore 9.0.2.

Comparison of the index item after a rebuild, and one after a publish

The one common thing between the lost field values, is that they are all added through config patching. Only the computed fields remain untouched by the Smart Publish.

The searchIndexConfiguration config file to which I patch the fields to can be found in this pastebin https://pastebin.com/cCSCwxv3


<?xml version="1.0" encoding="utf-8" ?>
<configuration  xmlns:patch="http://www.sitecore.net/xmlconfig/"
                xmlns:role="http://www.sitecore.net/xmlconfig/role/"
                xmlns:search="http://www.sitecore.net/xmlconfig/search/">
    <sitecore role:require="Standalone or ContentManagement" search:require="Azure">
        <contentSearch>
            <indexConfigurations>
                <searchIndexConfiguration type="Sitecore.ContentSearch.Azure.CloudIndexConfiguration, Sitecore.ContentSearch.Azure" ref="contentSearch/indexConfigurations/defaultCloudIndexConfiguration">
                    <documentOptions type="Sitecore.ContentSearch.Azure.CloudSearchDocumentBuilderOptions,Sitecore.ContentSearch.Azure">
                        <include hint="list:AddIncludedField">
                            <!--BaseMetaInformation-->
                            <MetaTitle>{41F598EB-4A49-4B48-A91F-7AA126358F1A}</MetaTitle>
                            <MetaDescription>{C9ED93CF-72C4-4D58-958A-D79AFC9298F1}</MetaDescription>
                            <OpenGraphTitle>{3DE98156-18B4-43C3-B4F7-430E7F37B148}</OpenGraphTitle>
                            <OpenGraphDescription>{DBA07D7F-5731-46C4-855D-20891E9159C3}</OpenGraphDescription>
                            <ContentPublishDate>{438CD345-8E52-4FB5-A405-6980EAE6D809}</ContentPublishDate>
                            <!--MetaInformation-->
                            <Market>{5759F6D6-C12C-4981-B617-2F79A9C079A2}</Market>
                            <MarketSegment>{A5FA2835-1D16-4237-AC03-BA56A73F4486}</MarketSegment>
                            <Solution>{44128DB4-D8BB-4C6E-9A88-698BD80C6974}</Solution>
                        </include>
                    </documentOptions>
                </searchIndexConfiguration>
            </indexConfigurations>
        </contentSearch>
    </sitecore>
</configuration>

<?xml version="1.0" encoding="utf-8" ?>
<configuration  xmlns:patch="http://www.sitecore.net/xmlconfig/"
                xmlns:role="http://www.sitecore.net/xmlconfig/role/"
                xmlns:search="http://www.sitecore.net/xmlconfig/search/">
    <sitecore role:require="Standalone or ContentManagement" search:require="Azure">
        <contentSearch>
            <indexConfigurations>
                <searchIndexConfiguration type="Sitecore.ContentSearch.Azure.CloudIndexConfiguration, Sitecore.ContentSearch.Azure" ref="contentSearch/indexConfigurations/defaultCloudIndexConfiguration">
                    <documentOptions type="Sitecore.ContentSearch.Azure.CloudSearchDocumentBuilderOptions,Sitecore.ContentSearch.Azure">
                        <include hint="list:AddIncludedTemplate">
                            <!--Vacancy Detail-->
                            <VacancyDetailPage>{F5A196F7-40F5-4790-9B8E-FE3B9AA2A338}</VacancyDetailPage>
                            <_VacancyDetailAboutJob>{93F2213D-3272-429A-B4F5-247AF4783D3A}</_VacancyDetailAboutJob>
                            <_VacancyDetailHeader>{06CD1CC3-2999-4753-9502-DB4CD3EE2D07}</_VacancyDetailHeader>
                        </include>

                        <include hint="list:AddIncludedField">
                            <!--VacancyDetailAboutJob-->
                            <Summary>{4BCB4473-4CE8-4324-9A52-35950A6962E7}</Summary>
                            <JobDescription>{8AEEFB3E-A1E6-4567-8C1D-931049DE39E8}</JobDescription>
                            <!--_VacancyDetailHeader-->
                            <VacancyTitle>{EC5B4474-DC51-48A3-AE41-3A4CFFC6C242}</VacancyTitle>
                        </include>
                    </documentOptions>
                </searchIndexConfiguration>
            </indexConfigurations>
        </contentSearch>
    </sitecore>
</configuration>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.