String[] ranges = new String[]{"[000000 TO 000005]", "[000006 TO 000010]", "[000011 TO 000020]"};
facetHandlers.add(new RangeFacetHandler("numendorsers", new PredefinedTermListFactory(Integer.class, "000000"), Arrays.asList(ranges)));
PredefinedTermListFactory numTermFactory = new PredefinedTermListFactory(Integer.class, "0000");
facetHandlers.add(new PathFacetHandler("location"));
PathFacetHandler pathHandler = new PathFacetHandler("path");
pathHandler.setSeparator("-");
facetHandlers.add(pathHandler);
PathFacetHandler multipathHandler = new PathFacetHandler("multipath",true);
multipathHandler.setSeparator("-");
facetHandlers.add(multipathHandler);
facetHandlers.add(new SimpleFacetHandler("number", numTermFactory));
facetHandlers.add(new SimpleFacetHandler("testStored"));