I harvested some records from an OAI repository using Dublin Core metadata. When I checked my solr server I couldn't find any of my records so I ran cron, but still no joy. Finally I went to the 'Reindex' page and it showed the progress bar before then giving the following error:

warning: Division by zero in modules/xc/xc_index/xc_index.module on line 453.

Comments

pkiraly’s picture

Assigned: Unassigned » pkiraly

In dev the whole indexing strategy was rethought, and I haven't tried harvesting a Dublin Core repository to test it. I hope, that I can do it next week, and I can give you more assistance. The reindex were eliminated in the current dev, but I haven't deleted it. If you still have energy, could you try the 'onestop indexer' (Solr indexing > 'Run one stop indexing')?

stella’s picture

Assigned: pkiraly » Unassigned

The "Run one stop indexing" doesn't give the division by zero error, but nor does it put anything into Solr's search index :(

pkiraly’s picture

Could you try it from delete records, and harvesting again? Please revisit the harvesting schedule's setting.

dbourrion’s picture

Version: » 6.x-1.1-alpha9

Hi
After using the automatic installation script (amazing, by the way), same problem with "warning: Division by zero in modules/xc/xc_index/xc_index.module on line 453." and as a consequence, nothing in Solr and no results after a search in XC :(

than_hs’s picture

We have modified xc_index module a bit so that it will index DC metadata correctly. It is because harvesting and building index of OAI_DC records is our main requirements. The changes we've made may not be suitable for general XC use but if anyone is interested let me know.

pkiraly’s picture

Great! Could you submit your changes as a patch?