public static void AddContentNodes(this VirtualPathQuery query, ContentReference contentLink, IContentLoader contentLoader) { if (ContentReference.IsNullOrEmpty(contentLink)) { return; } Validator.ThrowIfNull("contentLoader", contentLoader); foreach (string current in LuceneContentSearchHandler.GetVirtualPathNodes(contentLink, contentLoader)) { query.VirtualPathNodes.Add(current); } }
public virtual string GetQueryExpression() { return(new FieldQuery("\"" + LuceneContentSearchHandler.GetItemTypeSection <T>() + "\"", Field.ItemType).GetQueryExpression()); }