Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
 public virtual string GetQueryExpression()
 {
     return(new FieldQuery("\"" + LuceneContentSearchHandler.GetItemTypeSection <T>() + "\"", Field.ItemType).GetQueryExpression());
 }