[ https://issues.apache.org/jira/browse/SOLR-12625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16581158#comment-16581158 ]
David Smiley commented on SOLR-12625: ------------------------------------- Little review.... * Overall I'm loving it * RetrieveFieldsOptimizer is now an inner class but you either forgot to declare it static, or you forgot to remove the now pointless argument to the SolrDocumentFetcher within it since it will already have access to the doc fetcher. * I like the Supplier use * Wow there's a lot to that test. A minor point: those classes you created local to the test (e.g. FieldHolder) could be simpler by forgoing JavaBean conventions, as they are internal so just use field access. > Combine SolrDocumentFetcher and RetrieveFieldsOptimizer > ------------------------------------------------------- > > Key: SOLR-12625 > URL: https://issues.apache.org/jira/browse/SOLR-12625 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Erick Erickson > Assignee: Erick Erickson > Priority: Major > Attachments: SOLR-12625.patch, SOLR-12625.patch, SOLR-12625.patch > > > We have SolrDocumentFetcher and RetrieveFieldsOptimizer. The > relationship between the two is unclear at first glance. Using > SolrDocumentFetcher by itself is (or can be) inefficient. > WDYT about combining the two? Is there a good reason you would want to > use SolrDocumentFetcher _instead_ of RetrieveFieldsOptimizer? > Ideally I'd want to be able to write code like: > solrDocumentFetcher.fillDocValuesMostEfficiently > That created an optimizer and "did the right thing". > Assigning to myself to keep track, but if anyone feels motivated feel free to > take it over. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org