public override IEnumerable <TElement> FindElements <TElement>(XmlQuery query) { SearchLog.Log.Debug("Executing query: " + query.Expression); var index = _context.Index as XmlIndex; Assert.IsNotNull(index, "context.Index is not an instance of XmlIndex"); var doc = new XmlDocument(); doc.Load(index.IndexFilePath); var nodes = doc.SelectNodes(query.Expression); if (nodes != null) { foreach (XmlNode node in nodes) { //START: part 10 yield return(this._configuration.IndexDocumentPropertyMapper.MapToType <TElement>(node, null, null, SearchSecurityOptions.DisableSecurityCheck)); //END: part 10 } } }
public override TResult Execute <TResult>(XmlQuery query) { return(default(TResult)); }