Package com.browseengine.bobo.facets.impl

Examples of com.browseengine.bobo.facets.impl.PathFacetHandler$PathValueConverter


      Document doc = new Document();
      addMetaDataField(doc,PathHandlerName,new String[]{"/a/b/c","/a/b/d"});
      writer.addDocument(doc);
      writer.commit();
     
      PathFacetHandler pathHandler = new PathFacetHandler("path",true);
      facetHandlers.add(pathHandler);
  }
View Full Code Here


    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"));
   
View Full Code Here

    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 VirtualSimpleFacetHandler("virtual", numTermFactory,
        new FacetDataFetcher() {
View Full Code Here

    Document doc = new Document();
    addMetaDataField(doc, PathHandlerName, new String[] { "/a/b/c", "/a/b/d" });
    writer.addDocument(doc);
    writer.commit();

    PathFacetHandler pathHandler = new PathFacetHandler("path", true);
    facetHandlers.add(pathHandler);
  }
View Full Code Here

    static MultiValueFacetHandler buildWeightedMultiHandler(String name, String fieldName, TermListFactory<?> termListFactory, Set<String> depends, int invertedIndexPenalty) {
        return new MultiValueWithWeightFacetHandler(name, fieldName, termListFactory, invertedIndexPenalty);
    }

    static PathFacetHandler buildPathHandler(String name, String fieldName, Map<String, List<String>> paramMap, int invertedIndexPenalty) {
        PathFacetHandler handler = new PathFacetHandler(name, fieldName, false);    // path does not support multi value yet
        String sep = null;
        if (paramMap != null) {
            List<String> sepVals = paramMap.get("separator");
            if (sepVals != null && sepVals.size() > 0) {
                sep = sepVals.get(0);
            }
        }
        if (sep != null) {
            handler.setSeparator(sep);
        }
        return handler;
    }
View Full Code Here

TOP

Related Classes of com.browseengine.bobo.facets.impl.PathFacetHandler$PathValueConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.