org.cdlib.dsc.solr.SimpleFacet has a method fieldTransform that takes the String of the url and return the String to go in the host field
org.cdlib.dsc.solr.SimpleFacetTest is a very simple jUnit test
will remove the classes directory, create it again, compile the sources, and run the jUnit test.
BSD style Copyright 2010 UC Regents all rights reserved
This version is under active development. It adds an index field "host" such that a page with a url of http://example.org/test will get a value example.org in the index.
add a second level domain option (ignore subdomains) to group all so www.example.edu and library.example.edu all get example.edu
add regex based facet value substituion, keeping in mind that the facet values are also going to be used for display labels to the end user; if no regex's match, just output a hostname?