elasticsearch/docs/reference
Nik Everett 8d3ef742db Painless: =~ and ==~ operators
Adds support for the find operator (=~) and the match operator (==~)
to painless's regexes. Also whitelists most of the Matcher class and
documents regex support in painless.

The find operator (=~) returns a boolean that is the result of building
a matcher on the lhs with the Pattern on the RHS and calling `find` on
it. Use it like this:

```
if (ctx._source.last =~ /b/)
```

The match operator (==~) returns boolean like find but instead of calling
`find` on the Matcher it calls `matches`.

```
if (ctx._source.last ==~ /[^aeiou].*[aeiou]/)
```

Finally, if you want the actual matcher you do:

```
Matcher m = /[aeiou]/.matcher(ctx._source.last)
```
2016-06-16 08:42:33 -04:00
..
aggregations Set collection mode to breadth_first in the terms aggregation when the cardinality of the field is unknown or smaller than the requested size. 2016-06-16 11:33:40 +02:00
analysis [docs] s/lags/Flags/ 2016-06-09 13:08:53 -04:00
cat Remove index_writer_max_memory stat from segment stats 2016-05-31 06:29:29 -04:00
cluster Create get task API that falls back to the .tasks index 2016-06-14 13:37:34 -04:00
docs Create get task API that falls back to the .tasks index 2016-06-14 13:37:34 -04:00
images Updated decay-function image in function_score query 2016-04-20 13:37:52 +02:00
index-modules default values for BM25 Similarity (#18778) 2016-06-13 18:57:44 +02:00
indices Allow _shrink to N shards if source shards is a multiple of N (#18699) 2016-06-07 10:06:41 +02:00
ingest new ScriptProcessor for Ingest (#18193) 2016-06-15 14:57:18 -07:00
mapping Expose half-floats. #18887 2016-06-16 09:46:39 +02:00
migration Add search preference to prefer multiple nodes 2016-06-14 21:34:24 -04:00
modules Painless: =~ and ==~ operators 2016-06-16 08:42:33 -04:00
query-dsl [TEST] wait for yellow after setup doc tests (#18726) 2016-06-03 16:37:28 +02:00
release-notes Add upgrade-not-supported warning to alpha release notes 2016-06-02 10:18:16 +02:00
search Closes #18013. Added status field to _msearch response bodies. 2016-06-16 00:25:17 -07:00
setup Bootstrap check for OnError and seccomp 2016-06-06 22:18:44 -04:00
testing Introduce dedicated master nodes in testing infrastructure (#18514) 2016-05-27 08:44:20 +02:00
aggregations.asciidoc refactor matrix agg documentation from modules to main agg section 2016-06-06 07:39:00 -05:00
analysis.asciidoc First pass at improving analyzer docs (#18269) 2016-05-11 14:17:56 +02:00
api-conventions.asciidoc Lessen leniency of the query dsl. #18276 2016-05-16 17:37:00 +02:00
cat.asciidoc Add support for documented byte/size units and for micros as a time unit in _cat API 2016-04-15 20:55:41 +02:00
cluster.asciidoc Update task management docs to reflect the latest changes in the interface 2016-03-29 12:26:37 -04:00
docs.asciidoc Add support for waiting until a refresh occurs 2016-06-06 11:37:53 -04:00
getting-started.asciidoc Remove settings and system properties entanglement 2016-05-19 14:08:08 -04:00
glossary.asciidoc Improve glossary to not refer to types as "like a table" (#17704) 2016-04-13 14:29:47 +02:00
index-modules.asciidoc Add support for waiting until a refresh occurs 2016-06-06 11:37:53 -04:00
index.asciidoc Added release notes for 5.0.0-alpha3 2016-05-31 11:51:10 +02:00
indices.asciidoc Include shrink-index.asciidoc 2016-05-31 11:50:50 +02:00
ingest.asciidoc Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
mapping.asciidoc Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
modules.asciidoc refactor matrix agg documentation from modules to main agg section 2016-06-06 07:39:00 -05:00
query-dsl.asciidoc Fixed broken xrefs to query-dsl-not-query, which has been removed. 2015-10-20 13:01:37 -07:00
redirects.asciidoc Docs: Complete rewrite of setup, installation, and configuration docs 2016-04-03 16:09:48 +02:00
release-notes.asciidoc Added release notes for 5.0.0-alpha3 2016-05-31 11:51:10 +02:00
search.asciidoc Add documentation for global search timeout 2016-01-07 10:42:18 -05:00
setup.asciidoc Add bootstrap check docs 2016-05-27 06:03:35 -04:00
testing.asciidoc [DOCS] Test framework documentation 2013-12-02 18:01:45 +01:00