The Blacklight rake task is a very light wrapper around SolrMarc [1] (with its own mailing lists, linked from that page, should you run into trouble with it). From the SolrMarc documentation [2]:
> The SolrMarc program reads in MARC records stored in standard binary (ISO 2709) or XML format and uses a configurable and customizable script for extracting values from the fields and sub-fields of the MARC record to build an index entry for adding to Solr.
So, I imagine it should "just work".
Chris
[1] http://code.google.com/p/solrmarc
[2] http://code.google.com/p/solrmarc/wiki/ConfiguringSolrMarc#About_SolrMarc
On Aug 29, 2011, at 7:51 PM, PG wrote:
> Can I index marcxml instead of .mrc files using rake solr:marc:index
> MARC_FILE=/some/file.xml
>
> --
> You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
> To post to this group, send email to blacklight-...@googlegroups.com.
> To unsubscribe from this group, send email to blacklight-develo...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/blacklight-development?hl=en.
>
SolrMarc should take MarcXML fine. I think it expects the input file to be named ending in suffix .xml to recognize it as XML.
Although come to think of it, I send marc to SolrMarc on stdin too; not sure how you’d tell it to expect XML in that case. But the SolrMarc list would be the place to ask. In general, SolrMarc is intended to take MarcXML fine, and the solr:marc:index wrapper rake task should do so as well. Several Blacklight and SolrMarc users are using SolrMarc with MarcXML.
--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/blacklight-development/-/O9hKdHOZy1MJ.