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

Script Filter: Support providing a custom script as a filter #226

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

Script Filter: Support providing a custom script as a filter #226

kimchy opened this issue Jun 15, 2010 · 1 comment

Comments

@kimchy
Copy link
Member

kimchy commented Jun 15, 2010

A new filter, using the new script support (as used in custom_score and script fields). For example:

"filtered" : {
    "query" : {
        ...
    }, 
    "filter" : {
        "script" : {
            "script" : "doc['num1'].value > 1"
        }
    }
}

Custom parameters can also be provided for it:

"filtered" : {
    "query" : {
        ...
    }, 
    "filter" : {
        "script" : {
            "script" : "doc['num1'].value > param1"
            "params" : {
                "param1" : 5
            }
        }
    }
}
@kimchy
Copy link
Member Author

kimchy commented Jun 15, 2010

Script Filter: Support providing a custom script as a filter, closed by c278603.

ClaudioMFreitas pushed a commit to ClaudioMFreitas/elasticsearch-1 that referenced this issue Nov 12, 2019
williamrandolph pushed a commit to williamrandolph/elasticsearch that referenced this issue Jun 4, 2020
Fix elastic#226

(cherry picked from commit 6788a7163e90010c38baa3524827775ad4ee2594)
mindw pushed a commit to mindw/elasticsearch that referenced this issue Sep 5, 2022
elastic#226)

Improvements for gen_students

* Reuse bastion security group to allow SSH from the same IPs at the stack
  being used.
* Reuse bastion "package" to generate OS accounts on generator nodes
* Update to ubuntu 20.04 base AMI
* Enabled backend state
* Added README.md and example.tfvars


Approved-by: Can Yildiz
Approved-by: Andre Sodermans
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