How to filterable fields in SearchHelper.Search(parameters)

mantra tester asked on November 8, 2021 10:07

How get published(implement workflow) pages only in smart search index? I was thinking of using the DocumentWorkflowStepID field, but it's not working, I have no result data. Any suggestion?

Recent Answers


Dmitry Bastron answered on November 8, 2021 12:08

Hi Mantra,

By default, when you create Pages or Page Crawler index in Kentico, these indexes already contain only published documents. Is it not your case? Can you see any unpublished documents in the index?

0 votesVote for this answer Mark as a Correct answer

mantra tester answered on November 10, 2021 07:55

thank you for your answer but, in my case, how to not to get the pages with this status icon image. Cause the DocumentCanBePublished is true. I tried using DocumentWorkflowStepID as a filter, but not work.

searchParameters.SearchFor = SearchSyntaxHelper.GetFieldCondition("documentworkflowstepid", (int)5885, true);
0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on November 10, 2021 09:40

If you mean the blue icon, then this means the page is scheduled to be published. So, this means you are using probably Publish From/To field. It can be confusing the workflow publishing and scheduled publishing. I believe that this article explains how the two work together.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.