rmuir commented on a change in pull request #25:
URL: https://github.com/apache/lucene/pull/25#discussion_r601940550
##########
File path: lucene/facet/src/java/org/apache/lucene/facet/FacetsConfig.java
##########
@@ -388,6 +434,42 @@ private void processFacetFields(
}
}
+ private void indexDrillDownTerms(
+ Document doc, String indexFieldName, DimConfig ft, FacetLabel cp) {
+ if (ft.drillDownTermsIndexing != DrillDownTermsIndexing.NONE) {
+ // index full-path drill down term
+ doc.add(
+ new StringField(indexFieldName, pathToString(cp.components,
cp.length), Field.Store.NO));
+
+ switch (ft.drillDownTermsIndexing) {
+ case NONE:
Review comment:
@gsmiller @zacharymorn we may also choose to enable some ECJ checks for
switch statements. I will do a quick test of this to see how difficult it would
be to turn some of these on.
--
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]