/** * factory method for invoking json facet framework as whole. Note: this is currently only used * from SimpleFacets, not from JSON Facet API itself. */ public static FacetProcessor<?> createProcessor( SolrQueryRequest req, Map<String, Object> params, DocSet docs) { FacetParser parser = new FacetTopParser(req); FacetRequest facetRequest = null; try { facetRequest = parser.parse(params); } catch (SyntaxError syntaxError) { throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, syntaxError); } FacetContext fcontext = new FacetContext(); fcontext.base = docs; fcontext.req = req; fcontext.searcher = req.getSearcher(); fcontext.qcontext = QueryContext.newContext(fcontext.searcher); return facetRequest.createFacetProcessor(fcontext); }
public SolrQueryRequest getSolrRequest() { return parent.getSolrRequest(); }
public IndexSchema getSchema() { return parent.getSchema(); }
public String getPathStr() { if (parent == null) { return "/" + key; } return parent.getKey() + "/" + key; }