2016-11-10 102 views
-1

我正在使用Sitecore快速查詢來獲取結果。但是,如果我在master db中使用查詢,我沒有得到任何結果,我也嘗試在XPath查看器中運行它。但是我得到了Sitecore查詢的結果。同樣的快速查詢對Web數據庫有效。Sitecore快速查詢沒有從主數據庫返回結果,而Sitecore查詢返回結果

fast://#sitecore#/#content#/#Something#/#Something#/#AU#/#Website#/ancestor-or-self::*[@@templateid='{463D7680-BF52-49DF-B7D5-88E97416A1FA}']/Configuration/Navigation/Footer Bottom Right/* 

回答

0

我還真不明白什麼是問題的原因,但清理所有數據庫解決的問題。

1

代替ancestor-or-self::使用//*

fast://#sitecore#/#content#/#Something#/#Something#/#AU#/#Website#//*[@@templateid='{463D7680-BF52-49DF-B7D5-88E97416A1FA}']/Configuration/Navigation/Footer Bottom Right/*