As I remember for the D6 version of this module, basic node properties were accessible. That is, you can create a Solr view, and add the node title, body, etc without needing to use hook_apachesolr_update. When I create a Solr view with this version, I don't see any of these fields accessible. Am I missing something in the ui to add them to the index, or do we now have to add these with code?

Comments

dchatry’s picture

Same here, I upgraded from D6 expecting this module to work best, but I can't retrieve the basic node fields. Is there a workaround ?

Edit : Ok I figured it out, the module get the fields name directly from Solr so you must pick the equivalent in the list.
Ex : label = node title, bundle = node type...

acidpotato’s picture

Using Views field view module http://drupal.org/project/views_field_view allows you to display all the fields in a given Solr views results. This also lets you indirectly use relationship which Solr Views doesnt allow.

In short, you can create a content view, with all the fields you want to display and add content: nid as contextual filter (content id from url). Now in your Solr view you can add Global:view field (thanks to views field view). In the field settings select your content view and add the nid field from Solr query result as the value in the contextual filter section of the field. Now you can display any node data even if it is not indexed by Solr by default.

MiroslavBanov’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

Now is explained in the issue summary. Apachesolr Views shows fields from Solr document.