lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: Map tika attribute to be the id in Solr Cell
Date Fri, 29 May 2009 00:56:56 GMT

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);



Mime
View raw message