Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facets: Script statistical facets #227

Closed
kimchy opened this issue Jun 15, 2010 · 1 comment
Closed

Facets: Script statistical facets #227

kimchy opened this issue Jun 15, 2010 · 1 comment

Comments

@kimchy
Copy link
Member

kimchy commented Jun 15, 2010

Allow to define a script to be evaluated with statistical facets, for example:

{
    "query" : {
        "match_all" : {  }
    },
    "facets" : {
        "test" : {
            "statistical" : {
                "script" : "doc['num1'] + doc['num2']"
            },
            "global" : false
        }
    }
}

Scripts can also allow for parameters:

{
    "query" : {
        "match_all" : {  }
    },
    "facets" : {
        "test" : {
            "statistical" : {
                "script" : "(doc['num1'] + doc['num2']) * factor",
                "params" : {
                    "factor" : 2.2
                }
            },
            "global" : false
        }
    }
}
@kimchy
Copy link
Member Author

kimchy commented Jun 15, 2010

Facets: Script statistical facets, closed by bb24b56.

williamrandolph pushed a commit to williamrandolph/elasticsearch that referenced this issue Jun 4, 2020
Fixes elastic#227

(cherry picked from commit 1a2f85b39f180f1cac48c054e8c7bb265b84d29f)
mindw pushed a commit to mindw/elasticsearch that referenced this issue Sep 5, 2022
)

hard code flush interval to 60 seconds

* hard code flush interval to 60 seconds

* Merged master into dev/ttang2/dequeue_MPC-1934_21.08.31
* change flush internval to 60 seconds

* Merge branch 'dev/ttang2/dequeue_MPC-1934_21.08.31' of bitbucket.org:engageli/devops into dev/ttang2/dequeue_MPC-1934_21.08.31


Approved-by: Can Yildiz
costin pushed a commit that referenced this issue Dec 6, 2022
🤖 ESQL: Merge upstream
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant