No facet source with core search

Created on 24 October 2022, over 2 years ago

Both the project page and the README say that Facets work with Drupal Core Search.

I'm on Drupal 9.4.8 with Facets 2.0.5. Core search is enabled.

If I go to /admin/config/search/facets no facet sources show up, and the "Add facet" button leads to "You currently have no facet sources defined. You should start by adding a facet source before creating facets."

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands gaele

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States JasonSafro

    Maybe update the error message with something like:

    Before adding a facet, there should be a facet source. Facet sources can be:
    - Drupal core's search.
    - A view based on a Search API index with a page display.
    - A page from the search_api_page module.
  • Having the same issue on Drupal 9.5.8 with Facets 2.0.6. Core search enabled, indexed, and correctly outputting to /search/node. Yet Facets config reports no facet sources, and admin/config/search/facets/add-facet results in the same. No errors or warnings in Watchdog.

  • πŸ‡¨πŸ‡·Costa Rica emudojo

    Same here, do we know if the module actually supports core search

  • Status changed to Closed: won't fix 22 days ago
  • πŸ‡§πŸ‡ͺBelgium borisson_ Mechelen, πŸ‡§πŸ‡ͺ

    It no longer does out of the box, you can find the old code in the facets_core_search module, but this is not actively maintained. We however suggest you use Search API instead.

  • πŸ‡³πŸ‡±Netherlands gaele

    Both the project page and the README say that Facets work with Drupal Core Search, so they probably should be updated.

  • πŸ‡§πŸ‡ͺBelgium borisson_ Mechelen, πŸ‡§πŸ‡ͺ

    Facets 3

    Facets 3.x only supports Search API, and introduces "Facets exposed filters" next to "Facet blocks".
    We recommend using Facets exposed filters for new projects, when using Facets + Views
    Using "Facets exposed filters" in Facets 3 has full AJAX support.

    Facets 3 will not support AJAX for "Facet blocks".

    Facets 2

    Facets 2 works with Drupal Core Search and Search API.
    It is kept available for existing projects using Facets 2 + Ajax as there is no upgrade path for this setup. Updating from 2 to 3 without AJAX support is possible.

    I think this is very clear, for facets 2 you need the additional core search module as mentioned here, if this doesn't work I think we should file a bug report there. Readme update in #3506177

Production build 0.71.5 2024