I have a requirement where I need to use custom search LWC in community search component. I was able to achieve using Aura but I could not find option in LWC. Is it supported in LWC ?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
As of Winter'21 release forceCommunity:searchInterface is not available in LWC
If you see the documentation the View as Lightning Web Component is greyed out.
Though Lightning web components support most of the functionality available in Aura components, there are few exceptions and forceCommunity:searchInterface is one of those.
The blog provides the complete list of unsupported LWCs.
EDIT: As suggested by Phil, LWC can be wrapped in a simple Aura component implementing this interface. See example .This way, most of the functionality can still be achieved using LWC.