Hello, currently I am trying to implement apachesolr search on one of our sites. I've read a lot about it. As I thought display suite search will not make any additional node_load, but in fact it does. In this function ds_search_process_results inside ds_search.module. Why we need it? Maybe my settings are wrong? When I use search results display instead of teaser nodes are also loaded. I will attach my settings screenshots, thank you in advance.

I use apachesolr 7.x-1.6 and display suite 7.x-2.6.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aspilicious’s picture

Status: Active » Fixed

Thats by design.

I know why we need a node load because Display Suite renders view modes on full entity objects. For some sites this leads to performance issues and they need better/custom solutions. But for smaller sites this is perfectly ok.

I have managed to save a specific view mode into solr and fetch it out with custom queries.
But as I said, all custom solutions, nothing reusable for a project as display suite.

Bogdan1988’s picture

I don't think that we need to decrease performance, especially in drupal. That's why I decided to create https://www.drupal.org/project/apachesolr_display module. I leave this comment to help other who will be faced same performance problems as I. Thank you.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.