refactor range faceting code so that the list of FieldTypes supported isn't hardcoded -------------------------------------------------------------------------------------
Key: SOLR-3217 URL: https://issues.apache.org/jira/browse/SOLR-3217 Project: Solr Issue Type: Improvement Reporter: Hoss Man idea that occured to me reviewing SOLR-2202, haven't thought it through all the way to be certain it would work... 1) create a new marker interface "RangeFacetable" which contains a single method {{getRangeEndpointCalculator(SchemaField)}} 2) refactor SimpleFacets so that instead of the big {{if (ft instanceof ...) { ... } else if ....}} block there right now, we just check if the FieldType is an instance of RangeFacetable 3) use ft.getRangeEndpointCalculator to do the voodoo we curently doodoo 4) make all of the existing {{private static}} subclasses of RangeEndpointCalculator (like IntegerRangeEndpointCalculator) public top level classes so custom FieldTypes can use them -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org