Hi There,
Thanks for your work on this module.

I can't seem to get the multi-site search facets to appear, the only on that appears is the site facet.

I'm sharing a Solr core between 3 websites the multi-site search works as advertised but I cannot seem display any blocks - their enabled in the Solr settings & those corresponding blocks/facets are set to be in a region.

I'm I missing a gotcha somewhere? Been through the groups and issue queues but no one else seems to bringing this up? Is it just me being dim?

Files: 
CommentFileSizeAuthor
#17 985196-17-apachesolr_multisitesearch-vocabulary-facets.patch1.44 KBjuampynr
PASSED: [[SimpleTest]]: [MySQL] 0 pass(es).
[ View ]
#10 985196-apachesolr_multisitesearch-vocabulary-facets.patch1.45 KBjuampynr
PASSED: [[SimpleTest]]: [MySQL] 0 pass(es).
[ View ]
#10 Selection_012.png1.61 MBjuampynr
#10 Selection_011.png1.11 MBjuampynr
#10 Selection_010.png741.54 KBjuampynr
#5 add-taxonomy-facets-985196.patch1.14 KBwalkah
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch add-taxonomy-facets-985196.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

atomicjeep’s picture

Can anyone else confirm this behaviour? Or is it an issue for the main Apache Solr Search Module?

SkidNCrashwell’s picture

Yes I can confirm I'm not getting the blocks to show either.

atomicjeep’s picture

Finally got back to investigating this problem, setup two D6 sites with CCK & Solr Search + Multisite Search. New empty Solr Core - connected them, indexed. Enabled the multisite facets & blocks - added them to the pages. The multisite search itself is ok just no facets to filter on....

Stumped! Willing to sponsor development of this module if anyone can help please get in touch

walkah’s picture

I can confirm this behaviour - looks like in the hook_block() implementation, there's some missing code to handle things like taxonomy term facets. working on a patch to post shortly...

walkah’s picture

Status:Active» Needs review
StatusFileSize
new1.14 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch add-taxonomy-facets-985196.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

added a patch for taxonomy vocabulary facets... not totally happy with the block title code, but it works.

pwolanin’s picture

I think the meta data doc should have the real names?

pwolanin’s picture

Actually, looking at the code, I'm not 100% sure we are storing the non-munged version in the meta data. If we are not, we shoudl be, and maybe in a more accessible form.

atomicjeep’s picture

nice one, thanks walkah that works for me. Although there's still a remaining issue that plagued the Apache Solr Search Integration module too. The length of the block delta field is to long and I'm getting error messages on the Block admin page - Duplicate Entry....

http://drupal.org/node/344249

I'm not that familiar with either of these modules to attempt a patch myself, should I file this as a separate issue?

thanks all for your help - MUCH appreciated!

Sylvain_G’s picture

#5 works for me

juampynr’s picture

Issue summary:View changes
StatusFileSize
new741.54 KB
new1.11 MB
new1.61 MB
new1.45 KB
PASSED: [[SimpleTest]]: [MySQL] 0 pass(es).
[ View ]

Here is an alternative approach: Apache Solr Multisite Search implements hook_facetapi_facet_info(). By adding vocabulary facets here we get automatically a working facet at the Solr environment settings with its respective block at the Block Administration.

Here are a few facets generated by the patch at http://somesite.local/admin/config/search/apachesolr/settings/solr/facets:

Facets

Then, we can enable these facets at the Block Administration:

Finally, we can see the facets at search/content. In this example, Event type and News type are vocabularies/taxonomies:

Facets in action

juampynr’s picture

Status:Needs review» Needs work

The last submitted patch, 10: 985196-apachesolr_multisitesearch-vocabulary-facets.patch, failed testing.

juampynr’s picture

Version:6.x-1.x-dev» 7.x-1.x-dev

Upgrading issue version to 7.x-1.x

Status:Needs work» Needs review
Dave Reid’s picture

+++ b/apachesolr_multisitesearch.module
@@ -44,18 +44,28 @@ function apachesolr_multisitesearch_facetapi_facet_info($searcher_info) {
+  // Expose a facet per taxonomy term.

"per taxonomy term" does not seem to match what is happening here. Should it be "per vocabulary"?

The last submitted patch, 5: add-taxonomy-facets-985196.patch, failed testing.

juampynr’s picture

StatusFileSize
new1.44 KB
PASSED: [[SimpleTest]]: [MySQL] 0 pass(es).
[ View ]

Adjusted comment as suggested.