Hi,

I'm trying to use display suite in a search view, but "display suite" plugin is not available in the display settings. Only " display suite fields" is available, however, when it is selected, it throws "Fatal error: Call to undefined method SearchApiViewsQuery::add_field() in /home/drupal7/public_html/sites/all/modules/views/plugins/views_plugin_row.inc on line 117 error." (attachment.jpg).
I'm a newbie so I don't understand much, but I thought I should report this here, since I'm only experiencing problems with display suite in the search index views.

Thanks,
Susana

Files: 
CommentFileSizeAuthor
attachment.jpg154.06 KBsrsbl

Comments

Project:Search API» Display Suite
Component:Views integration» Code

Thanks for reporting!

However, the problem lies in the display code, which doesn't seem to work with query plugins other than the Views default. Maybe this can be fixed, but I don't know. Moving to the (hopefully) right project, please set the right version number!

Version:7.x-1.0» 7.x-2.x-dev

Just wanted to report I am having the same result with the latest dev version ( I changed the version to reflect this, I'm not sure if this is proper etiquette or not, so please forgive me if I should have created a new bug report but this is the exact same issue I am seeing ).

Display Suite 7.x-2.0-beta1+5-dev

I had to switch to Panel Fields in views and that worked but doesn't give me the same level of detail DS does so I too hope a solution can be found to this issue.

I also have the following related modules installed:
Search API - 7.x-1.2
Solr Search - 7.x-1.0-rc2

Title:Error using Display Suite in search viewSupport for search api
Category:bug» feature

Display Suite simply doesn't support search api or solr search at this point, only core and the individual apachesolr search module.

@swentel: Could you explain the problem a bit? I haven't looked at the DS code. I wonder does it wrap around views and so it doesn't load the right includes as needed or is it a different problem? Maybe someone here can help if they know what the problem is, especially the ape-who-is-no-enemy-of-the-drink certainly knows his way around drupal.

There is also a problem with the indexing of display suite view modes.

You can render the entity using content -> rendered node. This makes it possible to render e.g. a DS themed teaser view

If you use the renderedversion from database not the search index then you need to query the db for every result. that should be prevented from the indexing of complete entity view modes.