Could someone try and explain to me what exactly I should do with
- schema.xml
- solrconfig.xml
I keep getting this error. msg whenever I approach the solr search page.
Your schema.xml version is too old. You must update it and re-index your content.
$status_header = '';
$solr_msg = $num_docs = $delay_msg = $delete_msg = '';
if (isset($data->index->numDocs)) {
try {
$stats_summary = $solr->getStatsSummary();
$solr_msg = '<p>' . t('Using schema.xml version: <strong>@schema_version</strong>', $stats_summary);
// We need a schema version greater than beta3. This is mostly to catch
// people using the Drupal 6 schema.
if (version_compare($stats_summary['@schema_version'], 'drupal-3.0-beta3', '<=')) {
drupal_set_message(t('Your schema.xml version is too old. You must update it and re-index your content.'), 'error');
}
if (!empty($stats_summary['@core_name'])) {
$solr_msg .= '<br />' . t('Solr core name: <strong>@core_name</strong>', $stats_summary);
}
$delay_msg = '<br />' . t('<em>The server has a @autocommit_time delay before updates are processed.</em>', $stats_summary) . "</p>\n";
$delete_msg = '<p>' . t('Number of pending deletions: @deletes_total', $stats_summary) . "</p>\n";
}
catch (Exception $e) {
watchdog('Apache Solr', nl2br(check_plain($e->getMessage())), NULL, WATCHDOG_ERROR);
}
$status_header .= $solr_msg . $delay_msg;
$pending_msg = isset($stats_summary['@pending_docs']) ? t('(@pending_docs sent but not yet processed)', $stats_summary) : '';
$num_docs = '<p>' . t('Number of documents in index: @num !pending', array('@num' => $data->index->numDocs, '!pending' => $pending_msg)) . "</p>\n";
$status_header .= $num_docs . $delete_msg;
}
I am running Solr 3.3 and...
What I particularly like to know is.... I need to replace above mentioned files. But there is talk about an example folder.... are we talking about the tomcat solr
I will be happy to attach any files. Tell me which ones please.
Sorry if I am thick for not getting this.
Comments
Comment #1
marco71 commentedI figured out how to do this. \i guess I should have read before asking.
I followed instructions in this node: http://drupal.org/node/504696
It's for drupal 6.x but things seem to work now.
Comment #2
marco71 commentedremoved duplicate
Comment #3
yngens commentedInstructions on http://drupal.org/node/504696 are for Drupal 6 whereas this ticket was opened for Drupal 7, where the error persists.
I have a functional Apache Solr Multi-core Setup using Jetty. My Drupal 6 websites with Apache Solr Search Integration module activated function with no issues. However, I needed to activate a Drupal 7 website with the same module activated on the same server. And it actually works with no issues except it's giving the notice in the subject.
I wonder if it is ok at all to have one Jetty for both Drupal6 and 7 installations on the same server? Of course, I copied schema.xml and solrconfig.xml from the module's versions for Drupal 6 and Drupal 7 into the respective conf directories of solr installation.
Comment #4
yngens commentedAfter restarting solr service, the notice disappeared. So the ticket could be closed. But I really hope someone can elaborate on the question if it is ok to have one solr service installed for both Drupal 6 and 7 sites on the same server?
Comment #5
nick_vhIt should be ok if you use the schema for drupal 6 in the drupal 6 solr service and the same with 7. If you however see any issue that you can prove and replicate we could take a closer look.
Thanks for the efforts!
Comment #7
DerTobi75 commentedHi,
sorry for bringing this one up! I read all the issues about this notice, bur cannot get it away!
I installed Apachesolr 3.5, copied all xml files in the conf folder, renamed the schema-solr3x.xml and solrconfig-3x.xml, started the server with java -jar start.jar.
Default Index shows Schema drupal-3.0-solr3, so I guess everything should work, but I still get Your schema.xml version is too old. You must update it to at least drupal-3.0-beta4 and re-index your content.
I am using ApacheSolr 3.5 and Apache Solr Search Integration 1.0!
Best regards,
Tobi
Comment #8
armourymedia commentedHaving the same issue as #7. (D7.15, Solr 3.5 and apachesolr.module 1.0)
Comment #9
DerTobi75 commentedThe Warning disapeaers, when I using the schema.xml for 3.0, but I cannot index anything.
Comment #10
armourymedia commentedIt seems that this issue is due to the change in the schema name to "drupal-3.0-solr3". I changed it to "drupal-3.0-rc2-solr3" in both schema.xml and solrconfig.xml and the error goes away. The error message is generated by the apachesolr_status_page function in apachesolr.admin.inc. I'm guessing the following doesn't recognize the new schema name in v1.0.
I'm not familiar enough with the module to offer a patch, but I hope this helps to isolate the issue.
Comment #11
nick_vhLooks like this is a version_compare fail.
Can someone confirm this patch works? I tried it out locally and looks to work for me for all use cases
Comment #12
pwolanin commentedNo, let's fix the version string actually.
Comment #13
pwolanin commentedPer our earlier discussion, will start by moving files to folders:
Comment #14
pwolanin commentedComment #15
pwolanin commentedHere's a version number fix.
Comment #16
pwolanin commentedComment #17
pwolanin commentedWith README changes too
Comment #18
pwolanin commentedPlus test fix (for a test that doesn't run on pifr).
Comment #19
pwolanin commentedcommitted to 7.x
Comment #20
pwolanin commentedComment #21
pwolanin commentedcommitted