Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited tags
Link
siddiq
  • 363
  • 4
  • 19
Source Link
siddiq
  • 363
  • 4
  • 19

Facet - default value with search api

I am using content type in Facet. The search result will be having an option to choose the content type to filter the result.

I want the search should show the result with particular content-type filtered by default. Is it possible? If so, how to do that?

To be little more clear instead of

https://example.com/searchpage?search_terms=xxxx

I want to search as following by default.

https://example.com/searchpage?search_terms=xxxx&f[0]=content_type:content_page&f[1]=content_type:cotent_page