3

I have a bunch of pages that contain only beans. I need these pages to show up when searching (using search_api_solr) for words used in those beans. The bean fields don't show up in the solr field settings page. Any ideas?

Update: though you can create an index containing both nodes and blocks this will just give me the blocks as results and not the pages they are on. Could this be 'fixed' in views?

1 Answer 1

1

Enable the 'Complete entity view' filter and then select the field 'Entity HTML output'. This will put the entire page in one field including any beans on that page.

I assume there is a better solution but I have not found one yet.

1
  • I think this could be a clean solution. When selecting 'Complete entity view' you can specify the view-mode. You could create a view-mode solely for search and use a specific tpl for that view-mode with no HTML but pure data. That way the 'Entity HTML output'-field in solr will be clean without HTML garbage.
    – Mr.B
    Commented Feb 12, 2016 at 10:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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