I am not sure I use the right terms to describe what I want to do, but I can expose my use case.
I have a node with a field which is a node reference (as provided by the References module). For example an Album has a reference to a Band.
What I would like to do is to index fields through their node reference, in order to search for the Album which Band has some characteristics. Then the search result list are Album nodes (not Band nodes) but the search criteria are based on Band fields (in addition to Album fields).
I also would like in the View based on this index to have access to the node references as relationships in order to display the field values through their node reference. This can be done when the View is based on a Content.
Is it possible to do this now? Or does it require the development of a module that extends Search API using References?
Comments
Comment #1
drunken monkeyI haven't really worked with the References module, but this should be easily possible provided References supports the Entity API correctly (and implements
hook_entity_property_info()correctly). If you can't access the referenced node's fields in the Search API, this seems not to be the case.Please ask in the References issue queue about this. A quick look at their code seems OK, in principle, but apparently something doesn't fit yet.