Possibility to search for tags and title?

Created on 5 September 2024, 7 months ago
Updated 17 September 2024, 7 months ago

I have a lot of articles and currently search api autocomplete only shows articles where it finds matches in the TITLE.
Is it possible to search for tags of that article too?

Would be nice because people use different words/synonyms when they search.

💬 Support request
Status

Fixed

Version

1.35

Component

General code

Created by

🇩🇪Germany marcoka

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

Comments & Activities

  • Issue created by @marcoka
  • Status changed to Fixed 7 months ago
  • 🇦🇹Austria drunken monkey Vienna, Austria

    Simply go to your search index’s “Fields” tab (/admin/config/search/search-api/index/[INDEX_ID]/fields), add all fields you want to search with type “Fulltext” and then make sure your search is configured to search through all those fields.
    The Search API generally searches whatever you tell it to search, this is all just configuration.

  • 🇩🇪Germany marcoka

    Thank you very much Thomas.

  • 🇩🇪Germany marcoka

    Ok i tried that. I may have missed something important here, maybe.

    - Added my taxonomy category field to the search api index and also indexed the hirarchy. Set it to fulltext.
    - Added a search api view with an exposed form.
    - Form is configured to search through all fields
    - But there are no results when i search that form using autocomplete or just hitting enter.

Production build 0.71.5 2024