Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9008929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:03:56+00:00 2026-06-16T02:03:56+00:00

Elasticsearch Histogramfacet doesn’t appear to support all_terms = true (i.e: return facetvalue / bucket

  • 0

Elasticsearch Histogramfacet doesn’t appear to support all_terms = true (i.e: return facetvalue / bucket even though count=0)

Is this correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:03:58+00:00Added an answer on June 16, 2026 at 2:03 am

    Yes, this is correct. However, if you are not using relevancy to sort your results you can move your query into the top-level filter element and put match_all into the top-level query element. For example, for following request will return two histograms – one only with elements that correspond to the query and another one for entire index:

    {
        "query": {
            "match_all": {}
        },
        "filter": {
            // filter goes here
        },
        "facets": {
            "histo_all": {
                "histogram": {
                    "field": "my_field"
                }
            },
            "histo": {
                "histogram": {
                    "field": "my_field"
                },
                "facet_filter": {
                    // same filter from top-level filter goes here
                }
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In this documentation regarding statistical facet in ElasticSearch , at the bottom of the
Let's say that I store documents like this in ElasticSearch: { 'name':'user name', 'age':43,
Is it possible with ElasticSearch to query against three different location fields? This would
So let's say I have an ElasticSearch index defined like this: curl -XPUT 'http://localhost:9200/test'
I have an elasticsearch index with numeric category ids like this: { id: 50958,
I'm following this railscast to get elasticsearch going in my rails app. When I
I've created a couchDB river (from this elasticsearch example ) for elasticsearch with the
I'm looking into integrating elasticsearch into my spring-jpa driven application. For this purpose the
i have elasticsearch database of geo objects. I want to search the nearest objects
http://www.elasticsearch.org/guide/reference/index-modules/analysis/standard-analyzer.html I have to use standard analyzer during indexing with custom stopwords . How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.