I created a typed list with three fields as follows:
fields.DefineField(KeywordFields.Keyword, 0);
fields.DefineField(KeywordFields.KeywordId, 1);
fields.DefineField(ListingKeywordFields.KeywordId, 2, "Count", AggregateFunction.Count);
In short, I am calling all keywords used and their "Count" and this works fine. But I want to filter on the Count such that I only retrieve records with Count > than a certain value:
bucket.PredicateExpression.AddWithAnd(((EntityField2)fields["Count"]) > 1000);
The above does not work... but the simple filters on the basic fields like below work:
bucket.PredicateExpression.AddWithAnd(KeywordFields.KeywordId == "1");
any ideas? Also how would I perform filters like "SELECT TOP 10"?
Thanks