Perhaps I'm not using this correctly but.

When I under "Manage Display" add the "Search Result" view for a content type and configure it to contain certain fields. Apache Solr still displays the various search results as shown in the screen shot. (Not as I configured)

Also absent is the pagination. Only 10 results shown with no links to see more.

How do I configure how the search result should look like?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Nick_vh’s picture

Could you please make a more detailed description on how to replicate?
Thanks!

BarisW’s picture

Having the same issue. Steps to reproduce:

- Enable the search result Display setting on admin/structure/types/manage/photo/display (where photo is my node type)
- Add an image field to the search result on admin/structure/types/manage/photo/display/search_result

Re-index the content, run cron, cache clear, etc. All the same: the search snippets never contains an image.
I might misunderstand the module, but should it be possible to add the imagefield content to the search result using the above steps?

BarisW’s picture

Added an image for clarification.

Nick_vh’s picture

I'm trying this out and it seems - if I follow your steps to reproduce - that even core search is not handling the search result display mode.
Can you confirm this? Or is it just me

Seems this is known behavior and is still not fixed
#1166114: Manage Displays Search Results doesn't manage the display of the search results
I would suggest taking a look at display suite for more specific theming needs

Nick_vh’s picture

Status: Active » Closed (duplicate)
shenzhuxi’s picture

After apply patch #21, core search works.
I think the core search and Solr use different way to display results, so this issue still active.

Nick_vh’s picture

patch #21? Please create a new issue or be a bit more clear why you re-open an old issue

BarisW’s picture

@Nick, he meant http://drupal.org/node/1166114#comment-4768026, see last comment

shenzhuxi’s picture

Yes, that's what I mean.
This issue is about function theme_apachesolr_search_snippets($vars)
$var is generated from Solr data not Drupal data, so Manage Display doesn't work.
Display suite http://drupal.org/project/ds provides this feature, but also doesn't work with apachesolr.