Exemplo n.º 1
0
def _domains_over_x_forms(num_forms=200, domains=None):
    form_domains = FormES().domain_facet().size(0)
    if domains:
        form_domains = form_domains.domain(domains)
    form_domains = form_domains.run().facet('domain', 'terms')

    return {x['term'] for x in form_domains if x['count'] > num_forms}
Exemplo n.º 2
0
def _domains_over_x_forms(num_forms=200, domains=None):
    form_domains = FormES().domain_aggregation().size(0)
    if domains:
        form_domains = form_domains.domain(domains)
    form_domains = form_domains.run().aggregations.domain.buckets_list

    return {x.key for x in form_domains if x.doc_count > num_forms}
Exemplo n.º 3
0
def _domains_over_x_forms(num_forms=200, domains=None):
    form_domains = FormES().domain_aggregation().size(0)
    if domains:
        form_domains = form_domains.domain(domains)
    form_domains = form_domains.run().aggregations.domain.buckets_list

    return {x.key for x in form_domains if x.doc_count > num_forms}
Exemplo n.º 4
0
def _domains_over_x_forms(num_forms=200, domains=None):
    form_domains = FormES().domain_facet().size(0)
    if domains:
        form_domains = form_domains.domain(domains)
    form_domains = form_domains.run().facet('domain', 'terms')

    return {x['term'] for x in form_domains if x['count'] > num_forms}
Exemplo n.º 5
0
def _domains_over_x_forms(num_forms=200, domains=None):
    form_domains = FormES().domain_facet().size(0)
    if domains:
        form_domains = form_domains.domain(domains)
    form_domains = form_domains.run().facet("domain", "terms")

    return {x["term"] for x in form_domains if x["count"] > num_forms}