public override Mubble.Models.QueryEngine.Query BuildQuery(Mubble.Models.QueryEngine.Query current) { Controller c = null; if (string.IsNullOrEmpty(this.Path)) { c = Control.GetCurrentScope<Controller>(this.Parent.Parent); } else { c = DataBroker.GetController(this.Path); } if (c != null) { this.Path = c.Path; current.AddTerm("Path", this.Path + "*", true, true, false); current.AddTerm("ActiveObjectsID", c.ID.ToString(), false, true); } return current; }
public override Mubble.Models.QueryEngine.Query BuildQuery(Mubble.Models.QueryEngine.Query current) { string author = this.Parent.Url.GetPathItem(0, "---"); if (author != "---") { current.AddTerm("Author", author, true, false); } else { current.IsValid = false; } return current; }
public override Mubble.Models.QueryEngine.Query BuildQuery(Mubble.Models.QueryEngine.Query current) { if (this.Value != null && this.Name != null) { current.AddTerm( this.Name, this.Value, this.Value.Contains("*"), this.Mode == IndexFieldMode.Require, this.Mode == IndexFieldMode.Exclude ); } return current; }