Browse files

go deeper

  • Loading branch information...
1 parent 1d67390 commit c5b55c3e7a705f428260505f301444c812c1a957 @spullara committed Jun 24, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 solr/src/main/java/avrobase/solr/SolrIndex.java
View
5 solr/src/main/java/avrobase/solr/SolrIndex.java
@@ -250,10 +250,7 @@ private void addField(SpecificRecord value, Schema schema, SolrInputDocument doc
for (Object e : ga) {
if (e instanceof SpecificRecord) {
SpecificRecord sr = (SpecificRecord) e;
- Schema.Field innerfield = sr.getSchema().getField(field);
- if (innerfield != null) {
- document.addField(solrfield, sr.get(innerfield.pos()));
- }
+ addField(sr, sr.getSchema(), document, field, solrfield);
} else {
throw new AvroBaseException("Invalid field name" + solrfield);
}

0 comments on commit c5b55c3

Please sign in to comment.