See example search results page: http://drupal.org/search/site/randall%20knutson
If you click on the "posted by" link, it (in many cases) takes you to the wrong user profile.

Comments

silverwing’s picture

It seems the links that aren't working correctly are for events and discussions for Groups.drupal.org - so it looks like it's a Bakery issue.

silverwing’s picture

Project: Drupal.org site moderators » Drupal.org infrastructure
Component: Broken link » Solr

*not sure where the best place for this issue is - begin musical queues? :) *

drumm’s picture

What is happening is user IDs from subsites, like groups.drupal.org, are being used as if they were on Drupal.org in our Solr multisite setup. It could be a bug in our module or theme overrides, or in apachesolr_multisitesearch itself.

drumm’s picture

Project: Drupal.org infrastructure » Apache Solr Multisite Search
Version: » 6.x-3.x-dev
Component: Solr » User interface

drupalorg_crosssite_preprocess_search_result() uses the user link created by apachesolr_search_node_result(), that apachesolr_multisite_search does not appear to override. I think apachesolr_multisite_search should override $result['user'] to either link to the correct site, or just have the unlinked username.

drumm’s picture

Issue tags: +affects drupal.org

Tag

jhodgdon’s picture

Priority: Normal » Major

I think this is a major-level issue. Putting up wrong links in search results is terrible. I typically use d.o search to find a link to a user profile so I can use a contact form, and if this is giving me bad links, it's really a problem.

drumm’s picture

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

Let's make this D7.

m1r1k’s picture

Issue summary: View changes
Status: Active » Fixed
Issue tags: +Amsterdam2014

It was fixed so this issue is irrelevant:

function apachesolr_multisitesearch_apachesolr_process_results(&$results, DrupalSolrQueryInterface $query) {
  $env_id = $query->solr('getId');
  $multisite = apachesolr_environment_variable_get($env_id, 'multisitesearch');
  if (!empty($multisite)) {
    foreach ($results as $id => $result) {
      $results[$id]['extra']['hash'] = theme('apachesolr_multisitesearch_breadcrumb_hash', array('hash' => $results[$id]['fields']['hash']));
      // Fix up results from remote sites.
      if ($results[$id]['fields']['hash'] != apachesolr_site_hash()) {
        $results[$id]['link'] = $results[$id]['fields']['url'];
        if (isset($results[$id]['user']) && !empty($results[$id]['fields']['name'])) {
          $results[$id]['user'] = check_plain($results[$id]['fields']['name']);
        }
      }
    }
  }
}
jhodgdon’s picture

Agreed, this is fixed. On drupal.org now it only makes user names into links if the search result is on www.drupal.org and not if it comes from a groups.drupal.org or other site.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.