0

I want the Drupal Default Search to look into Field Collection items.

I currently have a field_resources collection with a field_description and a field_file, and the search should be looking into both.

Is this possible? What simple alternative could I use instead? An external search module seems a bit overkill.

1

As say in Search interface the search system already indexes all visible output of a node; i.e., everything displayed normally by hook_view() and hook_node_view().

You can activate and configure in the display settings of your content type the custom display "Search index" than will be used for indexing.

If this doesn't works in you case, you can implement hook_node_update_index to add any information you want on the node before is indexed.

0

Search API Attachments Module helps you search through file attached in field collection

This module is an add-on to the Search API which allows the indexing and searching of attachments.

  • The question is about Drupal core Search. – gagarine Nov 27 '14 at 10:26

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.