diff --git a/pom.xml b/pom.xml index 087d459..6cfae02 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 ifpress ifpress-solr-plugin - 1.6.1 + 1.6.2 ifpress solr plugin Contains plugins to be installed in the solr server diff --git a/src/main/java/com/ifactory/press/db/solr/processor/UpdateDocValuesProcessor.java b/src/main/java/com/ifactory/press/db/solr/processor/UpdateDocValuesProcessor.java index 3765bfe..d068149 100644 --- a/src/main/java/com/ifactory/press/db/solr/processor/UpdateDocValuesProcessor.java +++ b/src/main/java/com/ifactory/press/db/solr/processor/UpdateDocValuesProcessor.java @@ -125,9 +125,7 @@ private void retrieveDocValuesHelper(String[] valueFields, SolrInputDocument doc Term idTerm = new Term(idField, id); TermQuery query = new TermQuery (idTerm); TopDocs docs = searcher.search(query, 1); - // getSlowAtomicReader is slower, so try to get LeafReader from LeafReaderContext first - List leaves = searcher.getTopReaderContext().leaves(); - LeafReader leafReader = leaves.isEmpty() ? searcher.getSlowAtomicReader() : leaves.get(0).reader(); + LeafReader leafReader = searcher.getSlowAtomicReader(); if (docs.totalHits == 1) { // get the value // LOG.debug(String.format("found %s", id));