Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

go deeper

  • Loading branch information...
commit c5b55c3e7a705f428260505f301444c812c1a957 1 parent 1d67390
Sam Pullara authored June 24, 2011
5  solr/src/main/java/avrobase/solr/SolrIndex.java
@@ -250,10 +250,7 @@ private void addField(SpecificRecord value, Schema schema, SolrInputDocument doc
250 250
           for (Object e : ga) {
251 251
             if (e instanceof SpecificRecord) {
252 252
               SpecificRecord sr = (SpecificRecord) e;
253  
-              Schema.Field innerfield = sr.getSchema().getField(field);
254  
-              if (innerfield != null) {
255  
-                document.addField(solrfield, sr.get(innerfield.pos()));
256  
-              }
  253
+              addField(sr, sr.getSchema(), document, field, solrfield);
257 254
             } else {
258 255
               throw new AvroBaseException("Invalid field name" + solrfield);
259 256
             }

0 notes on commit c5b55c3

Please sign in to comment.
Something went wrong with that request. Please try again.