What is the best way to implement Filters

santosh maroju asked on June 26, 2019 08:12

Hi team,

We are building a site which allows user to search any keyword and find online courses, articles, videos, guides and publications,News, related apps. We have to provide result count for the keyword for each format in the left pane like this: Articles(5) videos(2) News(5) Apps(3)

All types of results and description will be shown on the right side. To achieve this I have created pageTypes for each of the format and for each pageType I have created an index. But, other than these formats, we will have different topics in the left pane to filter even more. Topics are nothing but keywords again, which are frequently asked (or they may be standard key word or tags). These topics will be again categorized. To achieve this I am maintaining them in a separate pageType and a page created for that pagetype. Topics are maintained like comma separated words.

Is there a better way to do this ? Since I don't know development in portal engine, I am using angular for frontEnd and WebApi for the kentico site. I doubt this can be implemented in a better way. Please help.

Recent Answers

Dmitry Bastron answered on June 26, 2019 09:03

You can use categories for this (read more here). You can assign multiple categories to one page.

Also, if you need to display numbers (also known as "facets") dynamically based on the filtered view you would not be able to achieve this with defualt local Kentico Lucene search. You would need to use Azure search (read more here).

0 votesVote for this answer Mark as a Correct answer

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