Examples of addFacet()


Examples of org.apache.solr.handler.component.StatsValues.addFacet()

        f.facet(docID, v);
      }
    }

    for (FieldFacetStats f : facetStats) {
      allstats.addFacet(f.name, f.facetStatsValues);
    }
    return allstats.getStatsValues();
  }

View Full Code Here

Examples of org.elasticsearch.action.search.SearchRequestBuilder.addFacet()

        terms.field(field);
        terms.size(size);

        terms.facetFilter(standardFilters(range, filter));

        srb.addFacet(terms);

        final SearchRequest request = srb.request();
        SearchResponse r = c.search(request).actionGet();

        return new TermsResult(
View Full Code Here

Examples of org.elasticsearch.action.search.SearchRequestBuilder.addFacet()

        stats.order(TermsStatsFacet.ComparatorType.fromString(order.toString().toLowerCase()));
        stats.size(size);

        stats.facetFilter(standardFilters(range, filter));

        srb.addFacet(stats);

        final SearchRequest request = srb.request();
        SearchResponse r = c.search(request).actionGet();

        return new TermsStatsResult(
View Full Code Here

Examples of org.elasticsearch.action.search.SearchRequestBuilder.addFacet()

        stats.facetFilter(standardFilters(range, filter));

        stats.field(field);

        srb.addFacet(stats);

        SearchResponse r;
        final SearchRequest request;
        try {
            request = srb.request();
View Full Code Here

Examples of org.elasticsearch.action.search.SearchRequestBuilder.addFacet()

        SearchRequestBuilder srb = c.prepareSearch();
        final Set<String> affectedIndices = IndexHelper.determineAffectedIndices(indexRangeService, deflector, range);
        srb.setIndices(affectedIndices.toArray(new String[affectedIndices.size()]));
        srb.setQuery(qs);
        srb.addFacet(fb);

        final SearchRequest request = srb.request();
        SearchResponse r = c.search(request).actionGet();
        return new DateHistogramResult((DateHistogramFacet) r.getFacets().facet("histogram"), query,
                request.source(),
View Full Code Here

Examples of org.elasticsearch.action.search.SearchRequestBuilder.addFacet()

        SearchRequestBuilder srb = c.prepareSearch();
        final Set<String> affectedIndices = IndexHelper.determineAffectedIndices(indexRangeService, deflector, range);
        srb.setIndices(affectedIndices.toArray(new String[affectedIndices.size()]));
        srb.setQuery(qs);
        srb.addFacet(fb);

        SearchResponse r;
        final SearchRequest request = srb.request();
        try {
            r = c.search(request).actionGet();
View Full Code Here

Examples of org.exolab.castor.xml.schema.SimpleType.addFacet()

           FacetFactory facetFactory = FacetFactory.getInstance();
           while (values.hasNext()) {
            Facet facet = facetFactory.createFacet(
                       Facet.ENUMERATION, (String) values.next());
            facet.setOwningType(type);
            type.addFacet(facet);
           }

       }
       else if (dtdAttribute.isEnumerationType())
       {
View Full Code Here

Examples of org.nuxeo.ecm.core.api.DocumentModel.addFacet()

    public void shouldCreatePrivateProxyForSocialDocumentWithFacetAdded()
            throws Exception {
        DocumentModel socialDocumentFacetedNotePrivate = session.createDocumentModel(
                socialWorkspaceDoc.getPathAsString(), "Social Document Note1",
                "Note");
        socialDocumentFacetedNotePrivate.addFacet(SOCIAL_DOCUMENT_FACET);
        socialDocumentFacetedNotePrivate = session.createDocument(socialDocumentFacetedNotePrivate);
        session.save();
        eventService.waitForAsyncCompletion();
        session.save();
        socialDocumentFacetedNotePrivate = session.getDocument(socialDocumentFacetedNotePrivate.getRef());
View Full Code Here

Examples of org.springframework.data.solr.core.query.StatsOptions.addFacet()

    for (String fieldName : queryMethod.getFieldStats()) {
      options.addField(fieldName);
    }

    for (String facetFieldName : queryMethod.getStatsFacets()) {
      options.addFacet(facetFieldName);
    }

    options.setCalcDistinct(queryMethod.isFieldStatsCountDistinctEnable());

    Collection<String> selectiveCountDistinct = queryMethod.getStatsSelectiveCountDistinctFields();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.