ontology/solr-facet-tree/src/main/java/uk/co/flax/biosolr/TreeFacetField.java
/**
	 * Recalculate and update the child count for this node, in the event that 
	 * one or more child nodes have been removed (possibly further down the
	 * hierarchy).
	 * @return the new total count for this node, which can be used to recurse
	 * down the tree.
	 */
Recalculate and update the child count for this node, in the event that
one or more child nodes have been removed (possibly further down the
hierarchy).
@return the new total count for this node, which can be used to recurse
down the tree.
Recalculate and update the child count for this node in the event that one or more child nodes have been removed ( possibly further down the hierarchy ) . @return the new total count for this node which can be used to recurse down the tree .
public long recalculateChildCount() {
		childCount = 0;
		if (hasChildren()) {
			for (TreeFacetField childNode : hierarchy) {
				childCount += childNode.recalculateChildCount();
			}
		}
		return getTotal();
	}
public long recalculateChildCount ( ) { childCount = 0 ; if ( hasChildren ( ) ) { for ( TreeFacetField childNode : hierarchy ) { childCount += childNode . recalculateChildCount ( ) ; } } return getTotal ( ) ; }
Recalculate and update the child count for this node, in the event that
 one or more child nodes have been removed (possibly further down the
 hierarchy).
Recalculate and update the child count for this node in the event that one or more child nodes have been removed ( possibly further down the hierarchy ) .
// Reset the child count