in Web & Tech

Drupal 7: Search inside Field Collections

Field collections are awesome, but they have a serious drawback: anything that’s stored inside field collection fields isnt’t indexed by Drupal’s core search.

Here are just some quick & dirty notes of what I did to get those fields searchable:

  • disable core search
  • Install search_api, search_api_page and all dependencies
  • Install search_api_db (no search result summaries), fuzzysearch (sometimes weird results) or zend_lucene (just testing, zend as a requirement) as search server
  • add search server
  • add index (and configure all entities to search in)
  • add search page and according block

On installing Zend within Drupal (on a managed server provided by DomainFactory):

  • installed zend module (7.x-3.0-alpha-1)
  • installed composer using curl -sS | php53
  • installed zend php53 composer.phar install (from inside sites/all/modules/zend
  • having lots of errors
  • updated to zend module 7.x-3.x-dev (2012-10-30)
  • ran php53 composer.phar update
  • status report says zend 2.2.1 is installed correctly

Installing Zend Lucene:

  • Install module
  • create new server

Zend Lucene was still not working though. Haven’t had time to investigate further.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Learn More)