I am trying to get multisite between Drupal 6.26 and Drupal 7.17 working. Both sites store their data in a 1.4 Solr index. This setup works great on Drupal 6 but on Drupal 7 the search only searches through the Drupal 7 site. I checked the enable multisite checkbox in the Solr search environment however, when searching Solr only searches through the Drupal 7 site.

I debugged the code a bit and the Apache Solr access module seems to add a hash to the query in the apachesolr_access_apachesolr_query_alter(DrupalSolrQueryInterface $query) function.
When adding a return statement on the first line the site seems to search through both sites successfully.

Am I doing something wrong or am I missing something ?

Below are the used versions for search:

  • Apache Solr Access 7.x-1.1
  • Apache Solr framework 7.x-1.1
  • Apache Solr Multisite Search 7.x-1.0
  • Apache Solr search 7.x-1.1
  • Solr 1.4

Comments

ChristophWeber’s picture

I can confirm this issue with the following module mix:
Apache Solr framework 7.x-1.1
Apache Solr Access 7.x-1.1
Apache Solr search 7.x-1.1
Apache Solr Multisite Search 7.x-1.0
Facet API 7.x-1.2
Solr 3.6.1 running under Tomcat 6
admin/config/search/apachesolr/multisite-filters show both indexed sites, but any search retruns results from the D7 portion of the index only. Disabling Apache Solr Access module fixes the problem, as expected.

The Drupal 6 site where multisite search works fine is OpenScholars running Drupal 6.22 with Apache Solr upgraded to 6.x-3.0.

vefverksmidja’s picture

We confirm this. Our setup is:

Drupal 6.26
Apache Solr Access 6.x-3.0-rc1
Apache Solr framework 6.x-3.0-rc1
Apache Solr Multisite Search 6.x-3.0
Apache Solr search 6.x-3.0-rc1

AND

Drupal 7.29
Apache Solr Access 7.x-1.1
Apache Solr framework 7.x-1.1
Apache Solr Multisite Search 7.x-1.0
Apache Solr search 7.x-1.1

Multisite search works on D6 with results from both D7 and D6 showing. D7 only shows results from D7 but in the multisite section I can see the D6 index. When I disable Apache Solr Access module in D7 it works like it should. But is it a safe thing to do?

regards, Vefverksmiðjan

vefverksmidja’s picture

Hi again,

I enabled nodeaccess on D6 and Apache Solr Access on D6 and reindexed. After that results from both D6 and D7 show up in D7. So for me the problem is fixed.

regards, Vefverksmiðjan

did1979’s picture

Hy,

I have excactly the same issue. What is encoured if I disable the ApacheSolr Node Access ?
Maybe we will find contents that are not allowed to see ?

Thanks,

Did