I want to search using the follwing filter condition. please check and let me know my syntax is ok or not?
Filter(x => x.Ancestors().Match(ContentReference.StartPage.ID.ToString())) and Filter(x => x.CategoryTag.Match(new ContentReference(category))) and Filter(filterBuilder)
or
Filter(x => x.Ancestors().Match(ContentReference.StartPage.ID.ToString())) and Filter(x => x.CategoryTag.Match(new ContentReference(category))) and Filter(HashfilterBuilder)
Syntax
result = SearchClient.Instance.Search()
.For(query)
.Filter(x => x.Ancestors().Match(ContentReference.StartPage.ID.ToString()))
.Filter(x => x.CategoryTag.Match(new ContentReference(category)))
.Filter(filterBuilder)
.OrFilter(HashfilterBuilder)
.Filter(x => x.Ancestors().Match(ContentReference.StartPage.ID.ToString()))
.Filter(x => x.CategoryTag.Match(new ContentReference(category)))
.OrderByDescending(x => x.StartPublish)
.Skip(offSet * pageSize)
.Take(pageSize)
.StaticallyCacheFor(TimeSpan.FromMinutes(0))
.GetPagesResult(LanguageSelector.AutoDetect());