I would like to exclude all body fields from the search index for a specific content type.

Reason: We have an Author content type with a bio in the Body field. However, for searches, we only want the author name to be indexed. We want the body field indexed for all other content.

  • Unfortunately the UI doesn't provide for that. You'll prob just need to overwrite the extractFields method and add a conditional.
    – No Sssweat
    Dec 10, 2022 at 6:52


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.