我們最近部署到客戶環境,我們沒有看到的新聞項目 - 這些正在使用Lucene搜索基於模板ID已找到Sitecore的Lucene索引
我只能認爲Lucene是沒有找到他們..我已經重建了搜索索引,我們絕對是在尋找合適的模板。
我想這個新聞沒有被包含在Lucene的找到的項目中。我無法看到Sitecore.SharedSource.Search.config中的任何內容阻止返回結果。搜索索引正在爲其他項目工作(例如,我們使用它作爲菜單)。
任何想法?我應該補充一點,我們已經將我們的sitecore站點添加到了一個外部開發的現有項目中,並且可能有庫代碼/配置,我們目前尚未意識到它正在做什麼!
下面是該指數從configuaratioon Sitecore.SharedSource.Search.config
<index id="advancedmaster" type="Sitecore.Search.Index, Sitecore.Kernel">
<param desc="name">$(id)</param>
<param desc="folder">advanced_master</param>
<Analyzer ref="search/analyzer" />
<locations hint="list:AddCrawler">
<master type="Sitecore.SharedSource.Search.Crawlers.AdvancedDatabaseCrawler,Sitecore.SharedSource.Search">
<Database>master</Database>
<Root>/sitecore/content</Root>
<IndexAllFields>true</IndexAllFields>
<include hint="list:ExcludeField">
<!-- __revision field -->
<fieldId>{8CDC337E-A112-42FB-BBB4-4143751E123F}</fieldId>
<!-- __context menu field -->
<fieldId>{D3AE7222-425D-4B77-95D8-EE33AC2B6730}</fieldId>
<!-- __security field -->
<fieldId>{DEC8D2D5-E3CF-48B6-A653-8E69E2716641}</fieldId>
<!-- __renderings field -->
<fieldId>{F1A1FE9E-A60C-4DDB-A3A0-BB5B29FE732E}</fieldId>
</include>
<fieldCrawlers hint="raw:AddFieldCrawlers">
<fieldCrawler type="Sitecore.SharedSource.Search.FieldCrawlers.LookupFieldCrawler,Sitecore.SharedSource.Search" fieldType="Droplink" />
<fieldCrawler type="Sitecore.SharedSource.Search.FieldCrawlers.DateFieldCrawler,Sitecore.SharedSource.Search" fieldType="Datetime" />
<fieldCrawler type="Sitecore.SharedSource.Search.FieldCrawlers.DateFieldCrawler,Sitecore.SharedSource.Search" fieldType="Date" />
<fieldCrawler type="Sitecore.SharedSource.Search.FieldCrawlers.NumberFieldCrawler,Sitecore.SharedSource.Search" fieldType="Number" />
</fieldCrawlers>
<!-- If a field type is not defined, defaults of storageType="NO", indexType="UN_TOKENIZED" vectorType="NO" boost="1f" are applied-->
<fieldTypes hint="raw:AddFieldTypes">
<!-- Text fields need to be tokenized -->
<fieldType name="single-line text" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
<fieldType name="multi-line text" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
<fieldType name="word document" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
<fieldType name="html" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
<fieldType name="rich text" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
<fieldType name="memo" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
<fieldType name="text" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
<!-- Multilist based fields need to be tokenized to support search of multiple values -->
<fieldType name="multilist" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
<fieldType name="treelist" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
<fieldType name="treelistex" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
<fieldType name="checklist" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
<!-- Legacy tree list field from ver. 5.3 -->
<fieldType name="tree list" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
</fieldTypes>
</master>
</locations>
</index>
您正在使用哪個版本的Sitecore?看看你的索引是什麼,如果使用[Luke](https://code.google.com/p/luke/)else <6.6然後使用[Index Viewer](http://marketplace.sitecore.net /en/Modules/Index_Viewer.aspx)。注意[6.6使用不同版本的lucene](http://stackoverflow.com/questions/19413543/sitecore-6-6-lucene-version-incompatibility/19414004#19414004)。否則檢查配置是否正確,並且你沒有在某處引用主控。 – jammykam
您是否試圖通過'TemplateId'搜索任何其他項目?它工作嗎?向我們顯示您用於搜索的代碼 –
您是否還檢查過日誌文件以查看索引過程是否成功完成?此外,我遇到了一個問題,我的索引將被刪除,然後頁面將被加載並緩存而沒有結果,然後重建索引。由於空白頁面被緩存,結果將不會顯示。如果您配置了緩存,則可能還需要清除緩存。 – Trayek