正如標題所述,如何創建自定義Sitecore ContentSearch索引?每次我嘗試添加一個自定義索引時,我最終都會收到[ConfigurationErrorsException: Index has no configuration.] Sitecore.ContentSearch.LuceneProvider.LuceneIndex.Initialize() +374
。編號: 尋找一個基本的樣例獨立配置。複製/粘貼sitecore_master_index
或sitecore_web_index
索引導致錯誤。如何創建自定義Sitecore ContentSearch索引?
1
A
回答
0
看看Autohaus on Github。它是由Alex Shyba和Tim Ward建立的自定義Sitecore網站。它有一個自定義索引在那裏搜索所有的車輛,所以你應該能夠遵循,並看看它是如何完成的。
在總覽上,他們創建了一個新的配置並引用了新的索引名稱,並使用Sitecore.ContentSearch.ContentSearchManager.GetIndex("index_name");
創建了一個ISearchIndex對象。你如何創建你的ISearchIndex對象?
2
發生此問題是因爲sitecore_master_index
和sitecore_web_index
配置不包含<Configuration>
部分。
添加這些指標定義以下節點,你不應該得到這個錯誤 (*Sitecore.ContentSearch.Lucene.Index.Core.config, Sitecore.ContentSearch.Lucene.Index.Master.config, Sitecore.ContentSearch.Lucene.Index.Web.config*)
:
<Configuration ref="contentSearch/configuration/defaultIndexConfiguration"/>
我不知道爲什麼是這樣,但它看起來像Sitecore的提供指數樣本不喜歡當您嘗試添加您自己的自定義索引配置時。
相關問題
- 1. 如何創建自定義索引
- 2. 如何在Sitecore 7中創建一個自定義索引來索引非Sitecore項目(例如用戶)
- 3. 帶自定義索引的Sitecore搜索
- 4. 創建自定義UITableView索引iOS
- 5. 如何使用Sitecore Solr自定義索引
- 6. Sitecore ContentSearch在保存項目時重複索引
- 7. 如何創建自定義搜索框
- 8. 我們如何創建自定義索引和自定義索引以在戶外搜索文檔?
- 9. 如何重建Sitecore內容交付服務器上的自定義Lucene索引?
- 10. 如何在Sitecore 7 ContentSearch API中執行多個術語搜索?
- 11. 如何從Sitecore 7 LINQ ContentSearch API檢索總計結果數量?
- 12. Sitecore 7 ContentSearch - 隨機排序
- 13. 如何在PowerQuery中創建自定義索引列?
- 14. 如何爲ebean創建自定義索引?
- 15. 如何用自定義索引創建數組?
- 16. 如何在nuch搜索引擎中創建自定義字段?
- 17. 如何在Sitecore中創建自定義頁面?
- 18. 創建索引後創建自定義分析器
- 19. Sitecore的8.1:自定義搜索索引無法通過PDF
- 20. 如何創建自定義)
- 21. 如何創建自定義索引,當你流CloudWatch的日誌彈性搜索
- 22. Sitecore:如何自定義媒體網址
- 23. Sitecore - 自定義搜索對話框
- 24. 創建自定義分區索引記錄到特定節點
- 25. Sitecore索引重建實踐
- 26. Solr爲Sitecore建立索引
- 27. 自定義Sitecore Solr索引計算字段返回錯誤值
- 28. 將自定義Lucene索引配置轉換爲Sitecore中的Solr
- 29. Sitecore系統Lucene自定義查詢索引
- 30. Sitecore:自定義treelistform
您爲了添加自定義索引而執行的步驟是什麼?您是否遵循Sitecore SDN的「Sitecore Search and Indexing pdf」?這裏是一篇博文,可能有幫助http://www.cognifide.com/blogs/sitecore/troubleshooting-sitecore-lucene-search-and-indexing/ –
@MarasMusielak新的[pdf](http:// sdn。 sitecore.net/upload/sitecore7/70/sitecore_search_and_indexing_guide_sc70-usletter.pdf)沒有經過基本配置。我已經複製並粘貼了默認的網頁索引,但是我得到了上面的錯誤。 – al3xnull
如果您發佈了配置文件的內容和配置文件的名稱,它將有所幫助。 –