Updating to latest and greatest added that data, thank you for the
pointer. Too many copies of Solr 1.4 trunk, and I'd neglected to
update.
However, the issue with the mapping not working with the
ext.metadata.prefix seems to remain:
budapest:site epugh$ curl http://localhost:8983/solr/update/extract?ext.def.fl=text
\&ext.map.stream_name=id\&ext.metadata.prefix=metadata_ -F "fi...@tutorial.pdf
"
<body><h2>HTTP ERROR: 500</
h2><pre>org.apache.solr.common.SolrException: Document [null] missing
required field: id
Eric
On May 28, 2009, at 8:56 PM, Grant Ingersoll wrote:
On May 28, 2009, at 8:47 PM, Eric Pugh wrote:
Grant, you are quite right! I was too far down in the weeds, and
didn't need to be doing all that crazyness.
And I don't actually see the metadata fields. I would expect to
however!
What revision are you running?
The following was added to ERH on 4/24/09, r768281, (see SOLR-1128)
to solve this exact problem:
String[] names = metadata.names();
NamedList metadataNL = new NamedList();
for (int i = 0; i < names.length; i++) {
String[] vals = metadata.getValues(names[i]);
metadataNL.add(names[i], vals);
}
rsp.add(stream.getName() + "_metadata", metadataNL);
-----------------------------------------------------
Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 |
http://www.opensourceconnections.com
Free/Busy: http://tinyurl.com/eric-cal