gsmiller commented on a change in pull request #138: URL: https://github.com/apache/lucene/pull/138#discussion_r632800907
########## File path: lucene/facet/src/java/org/apache/lucene/facet/DrillDownQuery.java ########## @@ -170,11 +170,22 @@ private BooleanQuery getBooleanQuery() { return bq.build(); } - Query getBaseQuery() { + /** + * Returns the internal baseQuery of the DrillDownQuery + * + * @return The baseQuery used on initialization of DrillDownQuery + */ + public Query getBaseQuery() { return baseQuery; } - Query[] getDrillDownQueries() { + /** + * Returns the dimension queries added either via {@link #add(String, Query)} or {@link + * #add(String, String...)} + * + * @return The array of dimQueries + */ + public Query[] getDrillDownQueries() { Query[] dimQueries = new Query[this.dimQueries.size()]; Review comment: I wonder if it would make more sense to build each dim query when they're added and change dimQueries to `List<BooleanQuery>`. From a quick glance at the code, I don't see a need to store these as boolean clauses and then only build them when needed. If we expose this as public, we could wind up building these queries multiple times, which is wasteful. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org