Closed (fixed)
Project:
Apache Solr Search
Version:
6.x-1.0-rc2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
7 Oct 2009 at 10:59 UTC
Updated:
13 Apr 2017 at 18:04 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedAh, I see the dev version...
Comment #2
Aldus commentedI have exactly the same issue. Did you find out how to solve it? I can't find this functionality in the dev or beta versions
Comment #3
Anonymous (not verified) commentedI didn't I'm afraid :(
I'm going to dig into the Apache Solr documentation at some point, just not had chance to as yet... perhaps someone else reading this will have and may help us out!
Comment #4
30equals commentedsubscribe
Comment #5
Scott Reynolds commentedLets not have duplicate issues going all over the place. #776220: Using Facets from referenced node?
Solr is a document style database. What this means is that you don't have relational style joins.
So that means that in order to do what you want you have to de-normalize your data. This can be done via hook_apachesolr_update_index. So when so the example that started this issue
Essentially, that takes all the facet fields you want to use from the book node type (e.g. 'facet_1' and 'facet_2') and puts them on the review type as well.
Comment #6
Scott Reynolds commentedDef not critical as it doesn't prevent the module from working. Please be mindful of that @aldus
Comment #7
Aldus commentedsorry for the duplicate and wrong priority setting, and thank you Scott for the very clear explanation. I'll go with Views for creating relational facets
Comment #8
jpmckinney commentedScott explains how to solve the problem in #5 and offers some code. Here is a cleaner version:
This gets the genre from the book Drupal node onto the review Solr document.
To facet on sm_genre, you need to implement another hook:
You then need to enable this filter and add its block to a region.
Comment #9
Anonymous (not verified) commentedThat's a wonderful example, thanks!
...and thanks for all your help on this, hopefully I will get chance over the summer to get the solr search up and running again on http://booksforkeeps.co.uk and implement this, will be great to have so much data easily findable.