public override void VisitAdditionalFromClause(AdditionalFromClause fromClause, QueryModel queryModel, int index)
        {
            var luceneExpression = new LuceneIndexExpression();
            luceneExpression.AttachIndex(fromClause.ItemType.GetContractId());
            luceneExpression.Append(fromClause.ItemType.GetContractId());
            _queryParts.AddFromPart(luceneExpression);

            fromClause.ItemName = "EventInternal";

            base.VisitAdditionalFromClause(fromClause, queryModel, index);
        }
 public void AddWherePart(LuceneIndexExpression formatString)
 {
     WhereParts.Add(formatString);
 }
 public void AddFromPart(LuceneIndexExpression querySource)
 {
     FromParts.Add(querySource);
 }