1

I want to create a facet to filter search results by entity type (node and product in this case). I have the entity_type field added to my index ...

enter image description here

And I have a facet set up that seems like it should work ...

enter image description here

The content_type facet works and is set up essentially the same way.

Any idea what I'm missing here? Thanks!

5
  • Not possible to say. One reason a facet won't show is if it has no results, are you 100% positive there are stored results for that field?
    – Kevin
    Commented Oct 7, 2022 at 14:52
  • I changed the "Empty facet behavior" to show some text and still nothing. The search results include both types. Does that mean there are "stored results for that field"? Commented Oct 7, 2022 at 15:06
  • I can display the entity type in my search results view and also sort by it. However, I cannot expose a filter for it. Commented Oct 7, 2022 at 15:10
  • Found it ... I had changed and added and removed the facet so many times trying to make it work I forgot to add the block back in place. It's been a long week. Commented Oct 7, 2022 at 15:17
  • Oh, but also if you select "List item label" under the Facet Settings, it doesn't show and throws an error... I suppose because entities don't necessarily have human-readable names? Commented Oct 7, 2022 at 15:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.