Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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?
Comment | File | Size | Author |
---|---|---|---|
#3 | Schermafbeelding 2011-10-05 om 18.07.56.png | 58.16 KB | BarisW |
Result.png | 115.89 KB | madeby |
Comments
Comment #1
Nick_vhCould you please make a more detailed description on how to replicate?
Thanks!
Comment #2
BarisW CreditAttribution: BarisW commentedHaving 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?
Comment #3
BarisW CreditAttribution: BarisW commentedAdded an image for clarification.
Comment #4
Nick_vhI'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
Comment #5
Nick_vhComment #6
shenzhuxi CreditAttribution: shenzhuxi commentedAfter apply patch #21, core search works.
I think the core search and Solr use different way to display results, so this issue still active.
Comment #7
Nick_vhpatch #21? Please create a new issue or be a bit more clear why you re-open an old issue
Comment #8
BarisW CreditAttribution: BarisW commented@Nick, he meant http://drupal.org/node/1166114#comment-4768026, see last comment
Comment #9
shenzhuxi CreditAttribution: shenzhuxi commentedYes, 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.