As the topic says, the message "Solr search index will be rebuilt." is appearing at the top of every view. Even for anonymous users.

The index has been completely rebuilt and there are no pending entries.

The message does not appear on content pages, or user profiles.

CommentFileSizeAuthor
#6 1957070-6.patch585 bytesnick_vh

Comments

justluvgod’s picture

I get the same error.

I am using the dev version of Apache Solr Search Integration from drupal.org. I am using version 4.2 apache Solr.

Routh’s picture

I just installed it on my dev site as well as production, and the issue exists on both despite different module sets and configurations.

Routh’s picture

There seems to be more to this. Apachesolr seems to be unaware of what has been sent to the server. I just completed a pass of 'Index all queued content' and the results are odd:

Message: 5540 items successfully processed. 5140 documents successfully sent to Solr.

TYPE VALUE
Indexed 5147 Items (16.63 MB on disk)
Remaining 5540 items (0% has been sent to the server)
Schema drupal-4.0-solr-3.x
Delay 2 min before updates are processed.
Pending Deletions 0

It shows 0% sent to server, no matter what the truth of the matter is.

Growiel’s picture

Priority: Normal » Major

Having the same issue, this is major, we have no idea what our index looks like and that's pretty annoying in a multisite setup.

nick_vh’s picture

This is due to the nodeaccess module (apachesorl_access)

There is a severe bug here and was introduced here :
http://drupalcode.org/project/apachesolr.git/commitdiff/3a2614b4f0579c33...

/**
 * Implements hook_form_alter().
 *
 * @param array $form
 * @param array $form_state
 * @param string $form_id
 *
 */
function apachesolr_access_form_alter(&$form, $form_state, $form_id) {
  $form['#submit'][] = 'apachesolr_access_rebuild_nodeaccess';
}

Proposal :

add the
"if ($form_id == 'node_configure_rebuild_confirm') {" back to the apachesolr_access_form_alter

nick_vh’s picture

Status: Active » Needs review
StatusFileSize
new585 bytes
nick_vh’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

Committed - needs backport

Growiel’s picture

Thanks nick_vh !

So this will be available in tomorrow's dev build ?

nick_vh’s picture

It will, or if you clone from dev it is already available

Growiel’s picture

Status: Patch (to be ported) » Needs work

I'm still having the messages poping everywhere and my "index status page" still shows 0% indexed when it's infact indexed.

I'm using the latest Solr 4.x, the latest dev of this module and ApacheSolr Multisite search that I manually fixed to work with Solr 4.

nick_vh’s picture

Do you need apachesolr_access? Can you verify in your code if the patch I posted above applied?

Growiel’s picture

It's not.

I checked in the .zip file too (in case I miss extracted) and it's not there either... And I just realised that the last dev release was posted on March 15, I downloaded it without re-checking the date.

Is that normal ? Should I install Git and clone ?

nick_vh’s picture

Try to clone it from git indeed

nick_vh’s picture

Priority: Major » Normal
Status: Needs work » Patch (to be ported)