Sitecore中已发布的更改未显示在网站中

问题描述

某些项目在手动发布时,更改不会反映在网站上。但我可以看到“ web”已更改。我还从Sitecore LinqSratchpad检查了索引是否已更新。这是以前的工作。但是,由于我们的Sitecore中有大量商品(并且我们正在使用多站点),因此我最初的猜测是因为这一点。清除缓存将无法解决问题。重新索引也无法解决。有时,在多次尝试重新索引并清除缓存,然后对该项目进行一些更改并执行Smart Publish会突然解决它。但这并不总是那样。

另一件事是,我们以编程方式完成了项目的发布。这也是以前的工作。但是现在所做的更改不再反映在网站上。但是“ web”已更新。另外,索引也根据LinqSratchpad中的检查进行更新。清除缓存无法保存。但是将重建索引。我检查了爬网日志,该项目的计算字段中有警告。但是我不明白的是,即使日志告诉我计算字段存在问题,为什么手动重建它仍然有效。

这是我有问题索引的CustomIndexingEnd.config

<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
  <sitecore>
    <events>
      <event name="indexing:end">
        <handler type="MyProblematicItem.Indexing.IndexingEnd,Besix.Features.Job" method="ClearCache" />
      </event>
    </events>
  </sitecore>
</configuration>

这是我的CustomIndex.config

<?xml version="1.0"?>
<configuration>
    <sitecore>
        <contentSearch>
            <configuration type="Sitecore.ContentSearch.ContentSearchConfiguration,Sitecore.ContentSearch">
                <indexes hint="list:Addindex">
                    <index id="problematicitem_master_index"
                        type="Sitecore.ContentSearch.LuceneProvider.LuceneIndex,Sitecore.ContentSearch.LuceneProvider">
                        <param desc="name">$(id)</param>
                        <param desc="folder">$(id)</param>
                        <!-- This initializes index property store. Id has to be set to the index id -->
                        <param desc="propertyStore" ref="contentSearch/indexConfigurations/databasePropertyStore"
                            param1="$(id)" />
                        <configuration ref="contentSearch/indexConfigurations/problematicitemIndexConfiguration" />
                        <strategies hint="list:AddStrategy">
                            <!-- NOTE: order of these is controls the execution order -->
                            <strategy
                                ref="contentSearch/indexConfigurations/indexUpdateStrategies/intervalAsyncMaster" />
                        </strategies>
                        <commitPolicyExecutor
                            type="Sitecore.ContentSearch.CommitPolicyExecutor,Sitecore.ContentSearch">
                            <policies hint="list:AddCommitPolicy">
                                <policy
                                    type="Sitecore.ContentSearch.ModificationCountCommitPolicy,Sitecore.ContentSearch">
                                    <Limit>300</Limit>
                                </policy>
                            </policies>
                        </commitPolicyExecutor>
                        <locations hint="list:AddCrawler">
                            <crawler type="Sitecore.ContentSearch.SitecoreItemCrawler,Sitecore.ContentSearch">
                                <Database>master</Database>
                                <Root>{329216DA-7A47-4318-99AD-7656E3456723}</Root>
                            </crawler>
                        </locations>
                        <enableItemLanguageFallback>true</enableItemLanguageFallback>
                        <enableFieldLanguageFallback>true</enableFieldLanguageFallback>
                    </index>
                </indexes>
                <indexes hint="list:Addindex">
                    <index id="problematicitem_web_index"
                        type="Sitecore.ContentSearch.LuceneProvider.LuceneIndex,Sitecore.ContentSearch.LuceneProvider">
                        <param desc="name">$(id)</param>
                        <param desc="folder">$(id)</param>
                        <!-- This initializes index property store. Id has to be set to the index id -->
                        <param desc="propertyStore" ref="contentSearch/indexConfigurations/databasePropertyStore"
                            param1="$(id)" />
                        <configuration ref="contentSearch/indexConfigurations/problematicitemIndexConfiguration" />
                        <strategies hint="list:AddStrategy">
                            <!-- NOTE: order of these is controls the execution order -->
                            <strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/onPublishEndAsync" />
                        </strategies>
                        <commitPolicyExecutor
                            type="Sitecore.ContentSearch.CommitPolicyExecutor,Sitecore.ContentSearch">
                                <Database>web</Database>
                                <Root>{329216DA-7A47-4318-99AD-7656E3456723}</Root>
                            </crawler>
                        </locations>
                        <enableItemLanguageFallback>true</enableItemLanguageFallback>
                        <enableFieldLanguageFallback>true</enableFieldLanguageFallback>
                    </index>
                </indexes>
            </configuration>
            <indexConfigurations>
                <problematicitemIndexConfiguration
                    type="Sitecore.ContentSearch.LuceneProvider.LuceneIndexConfiguration,Sitecore.ContentSearch.LuceneProvider">
                    <indexAllFields>true</indexAllFields>
                    <initializeOnAdd>true</initializeOnAdd>
                    <analyzer ref="contentSearch/indexConfigurations/defaultLuceneIndexConfiguration/analyzer" />
                    <documentBuilderType>Sitecore.Support.ContentSearch.LuceneProvider.LuceneDocumentBuilder,Sitecore.Support.96931.183397</documentBuilderType>
                    <fields hint="raw:AddComputedindexField">
                        <field fieldName="urllink" storageType="YES">
                            MyCustom.Search.Indexing.UrlIndexField,MyCustom.Search
                        </field>
                        <field fieldName="regioncountry" storageType="YES" indexType="TOKENIZED">
                            MyCustom.Search.Indexing.RegionIndexField,MyCustom.Search
                        </field>
                        <field fieldName="organisationtitle" storageType="YES" indexType="TOKENIZED">
                            MyCustom.Search.Indexing.TitleIndexField,MyCustom.Search
                        </field>
                        <field fieldName="regionpath" storageType="YES" indexType="TOKENIZED">
                            MyCustom.Search.Indexing.RegionPathIndexField,MyCustom.Search
                        </field>
                    </fields>
                    <fieldMap type="Sitecore.ContentSearch.FieldMap,Sitecore.ContentSearch">
                        <fieldNames hint="raw:AddFieldByFieldName">
                            <field fieldName="_uniqueid" storageType="YES" indexType="TOKENIZED" vectorType="NO"
                                boost="1f" type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider">
                                <analyzer
                                    type="Sitecore.ContentSearch.LuceneProvider.Analyzers.LowerCaseKeywordAnalyzer,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                            <field fieldName="title" storageType="YES" indexType="TOKENIZED" vectorType="NO" boost="1f"
                                type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                            <field fieldName="location" storageType="YES" indexType="TOKENIZED" vectorType="NO"
                                boost="1f" type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                            <field fieldName="organisation" storageType="YES" indexType="TOKENIZED" vectorType="NO"
                                boost="1f" type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                            <field fieldName="job type" storageType="YES" indexType="TOKENIZED" vectorType="NO"
                                boost="1f" type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                            <field fieldName="urllink" storageType="YES" indexType="UNTOKENIZED" vectorType="NO"
                                boost="1f" type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                            <field fieldName="experience" storageType="YES" indexType="TOKENIZED" vectorType="NO"
                                boost="1f" type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                            <field fieldName="industry" storageType="YES" indexType="TOKENIZED" vectorType="NO"
                                boost="1f" type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                            <field fieldName="function area" storageType="YES" indexType="TOKENIZED" vectorType="NO"
                                boost="1f" type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                            <field fieldName="date create" storageType="YES" indexType="TOKENIZED" vectorType="NO"
                                boost="1f" type="System.DateTime"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            <field fieldName="is imported" storageType="YES" indexType="TOKENIZED" vectorType="NO"
                                boost="1f" type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                            <field fieldName="job reaction url" storageType="YES" indexType="TOKENIZED" vectorType="NO"
                                boost="1f" type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                            <field fieldName="country" storageType="YES" indexType="TOKENIZED" vectorType="NO"
                                boost="1f" type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                            <field fieldName="entity" storageType="YES" indexType="TOKENIZED" vectorType="NO" boost="1f"
                                type="System.String"
                                settingType="Sitecore.ContentSearch.LuceneProvider.LucenesearchFieldConfiguration,Sitecore.ContentSearch.LuceneProvider" />
                            </field>
                        </fieldNames>
                    </fieldMap>
                    <include hint="list:IncludeTemplate">
                        <JobTemplate>{49B2B9F1-E554-4E72-B69B-E3AB6BA4147C}</JobTemplate>
                    </include>
                    <include hint="list:IncludeField">
                        <!-- title -->
                        <fieldId>{EA06D5D2-9D6D-4575-9A61-54CCD133D20C}</fieldId>
                        <!-- location -->
                        <fieldId>{4AA1583C-A782-4209-A0B8-D05A10DC4EB7}</fieldId>
                        <!-- organisation -->
                        <fieldId>{73557626-0B0A-42A0-9198-BDC6B671FED1}</fieldId>
                        <!-- job_type -->
                        <fieldId>{A62F8494-A4C5-43C5-BE4F-6F66CF33DCF7}</fieldId>
                        <!-- experience -->
                        <fieldId>{93ABEC29-12E3-4A04-9A4B-1AAAB3AF7DD7}</fieldId>
                        <!-- industry -->
                        <fieldId>{4B95D4BF-B6F7-4B21-879B-D5F14ED32AF2}</fieldId>
                        <!-- function_area -->
                        <fieldId>{6C8F5138-8F88-4F79-9415-DAA9ACDF4E9C}</fieldId>
                        <!-- date_create -->
                        <fieldId>{B3240D30-683E-4AD7-A1CD-D8EB483D0794}</fieldId>
                        <!-- is_imported -->
                        <fieldId>{F678B460-EDBE-449F-AB5E-8B195D6D95EA}</fieldId>
                        <!-- job_reaction_url -->
                        <fieldId>{F9CEB1CC-9D9C-4631-A809-74A61906B15C}</fieldId>
                        <!-- country -->
                        <fieldId>{35FC8314-90E4-4DAB-8BA5-94548780767E}</fieldId>
                        <!-- entity -->
                        <fieldId>{DB267984-FCEB-4F27-9CC4-9A78D1DA4C9D}</fieldId>
                    </include>
                    <fieldReaders
                        ref="contentSearch/indexConfigurations/defaultLuceneIndexConfiguration/fieldReaders" />
                    <indexFieldStorageValueFormatter
                        ref="contentSearch/indexConfigurations/defaultLuceneIndexConfiguration/indexFieldStorageValueFormatter" />
                    <indexDocumentPropertyMapper
                        ref="contentSearch/indexConfigurations/defaultLuceneIndexConfiguration/indexDocumentPropertyMapper" />
                </problematicitemIndexConfiguration>
            </indexConfigurations>
        </contentSearch>
    </sitecore>
</configuration>

**注意:我无权访问服务器,因此无法通过Luke检查索引。这就是为什么我使用Sitecore的LinqScratchPad。这样可以用吗?我们正在使用Sitecore 8.2。 **

在这里想念什么?

更新:我尝试从admin / EventQueueStats.aspx和admin / PublishQueueStats.aspx中清除内核,主服务器和Web。之后,我重复清除缓存,然后重新索引。那解决了问题。但是我不确定为什么会这样。问题的根源可能是什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)