コード例 #1
0
 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);
     }
 }
コード例 #2
0
ファイル: ContentQuery.cs プロジェクト: hwebz/NTCWeb
 public virtual string GetQueryExpression()
 {
     return(new FieldQuery("\"" + LuceneContentSearchHandler.GetItemTypeSection <T>() + "\"", Field.ItemType).GetQueryExpression());
 }