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

Allow custom queries in painless scripting language #1748

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing markdown format
  • Loading branch information
scottbuckel committed Apr 23, 2020
commit d7f8df0e0c7573ce418926b3e5ccd80f7c502e43
5 changes: 4 additions & 1 deletion docs/indexables.md
Original file line number Diff line number Diff line change
@@ -94,7 +94,10 @@ ElasticPress integrates with `WP_Query` if the `ep_integrate` parameter is passe
) );
```
* ```custom_query``` (*string*)
```custom_query``` allows the user to write a custom query in the painless scripting language [https://www.elastic.co/guide/en/elasticsearch/painless/current/index.html](https://www.elastic.co/guide/en/elasticsearch/painless/current/index.html). For example `doc['meta.birthday'].value.getMonthValue() == 3`
```custom_query``` allows the user to write a custom query in the painless scripting language [https://www.elastic.co/guide/en/elasticsearch/painless/current/index.html](https://www.elastic.co/guide/en/elasticsearch/painless/current/index.html).
```php
$args['custom_query'][] = "doc['meta.birthday'].value.getMonthValue() == 3";`
```

* ```date_query``` (*array*)