Closed sinclr4 closed 9 years ago
Should be possible by adding multiple EqualitySearchFilter
instances to a Search
:
var results = client.SearchAsync<Entry>(cancellationToken, new ISearchFilter[]
{
new EqualitySearchFilter(BuiltInProperties.ContentType, /* Id of Dog content type */),
new EqualitySearchFilter("Gender", "Female") // Makes sure that Gender == "Female"
});
This would return all Dog content, but only where the Gender = Female.
Hi Ryan, Thanks for this.
Hi Ryan, Great piece of code, just one question: Is it possible to search for a specific contenttype and then to search against a specific field to get a match. e.g Content type of Dog, Gender = Female
Thanks Rob