Commit graph

5542 commits

Author SHA1 Message Date
Julie Tibshirani
2bc436309d
Clarify the settings around limiting nested mappings. (#42686)
* Previously, we mentioned multiple times that each nested object was indexed as its own document. This is repetitive, and is also a bit confusing in the context of `index.mapping.nested_fields.limit`, as that applies to the number of distinct `nested` types in the mappings, not the number of nested objects. We now just describe the issue once at the beginning of the section, to illustrate why `nested` types can be expensive.
* Reference the ongoing example to clarify the meaning of the two settings.

Addresses #28363.
2019-05-30 09:23:38 -07:00
Mayya Sharipova
6f12eb168f Fix error with mapping in docs 2019-05-30 10:06:38 -04:00
Peter Dyson
588228816a [DOCS] path_hierarchy tokenizer examples (#39630)
Closes #17138
2019-05-30 09:19:56 -04:00
James Rodewig
7f3e0806dc
[DOCS] Rewrite 'wildcard' query (#42670) 2019-05-30 08:30:30 -04:00
Marios Trivyzas
04b7449731
Deprecate CommonTermsQuery and cutoff_frequency (#42619)
* Deprecate CommonTermsQuery and cutoff_frequency

Since the max_score optimization landed in Elasticsearch 7,
the CommonTermsQuery is redundant and slower. Moreover the
cutoff_frequency parameter for MatchQuery and MultiMatchQuery
is redundant.

Relates to #27096
2019-05-30 09:31:11 +02:00
Mayya Sharipova
e0041930a1
Add warning scores are floats (#42667) 2019-05-29 16:09:36 -04:00
lcawl
e78dd4013c [DOCS] Adds more monitoring tagged regions 2019-05-29 11:01:46 -07:00
James Rodewig
665b6563d7
[DOCS] Set explicit anchors for TLS/SSL settings (#42524) 2019-05-29 08:24:25 -04:00
Hendrik Muhs
5b5d001982
[ML-DataFrame] rewrite start and stop to answer with acknowledged (#42589)
rewrite start and stop to answer with acknowledged

fixes #42450
2019-05-29 11:13:37 +02:00
Julie Tibshirani
a1e78585d1 Fix a callout in the field alias docs. 2019-05-28 17:40:07 -07:00
James Rodewig
aad6cc4241
[DOCS] Fix X-Pack tag for Asciidoctor (#42443) 2019-05-28 15:18:51 -04:00
James Rodewig
79a3de4152
[DOCS] Set explicit anchors for Asciidoctor (#42521) 2019-05-28 14:20:42 -04:00
Yannick Welsch
6e39433cd5
Remove "nodes/0" folder prefix from data path (#42489)
With the removal of node.max_local_storage_nodes, there is no need anymore to keep the data in
subfolders indexed by a node ordinal. This commit makes it so that ES 8.0 will store data directly in
$DATA_DIR instead of $DATA_DIR/nodes/$nodeOrdinal.

Upon startup, Elasticsearch will check to see if there is data in the old location, and automatically
move it to the new location. This automatic migration only works if $nodeOrdinal is 0, i.e., multiple
node instances have not previously run on the same data path, which required for
node.max_local_storage_nodes to explicitly be configured.
2019-05-28 19:09:09 +02:00
Julie Tibshirani
f07b90f3c3
Remove support for chained multi-fields. (#42333)
Follow-up to #41926, where we deprecated support for multi-fields within
multi-fields.

Addresses #41267.
2019-05-28 09:49:40 -07:00
Lisa Cawley
905902c325
[DOCS] Reorg monitoring configuration for re-use (#42547) 2019-05-28 09:04:02 -07:00
Benjamin Trent
f2cde97a3b
[ML] adding delayed_data_check_config to datafeed update docs (#42095)
* [ML] adding delayed_data_check_config to datafeed update docs

* [DOCS] Edits delayed data configuration details
2019-05-28 10:03:39 -04:00
James Rodewig
69ef51d141
[DOCS] Fix API Quick Reference rollup attribute for Asciidoctor (#42403) 2019-05-28 08:52:59 -04:00
James Rodewig
b57cbb67e5
[DOCS] Escape cross-ref link comma for Asciidoctor (#42402) 2019-05-28 08:47:18 -04:00
Travis Steel
50ed840e52 Fixed typo in docker.asciidoc (#42455) 2019-05-27 11:56:51 +02:00
bellengao
71e978bcc0 Update script-fields.asciidoc (#42490) 2019-05-27 11:47:46 +02:00
James Rodewig
8f03033635
[DOCS] Move callouts to end of line for Asciidoctor migration (#42356) 2019-05-24 15:03:11 -04:00
David Roberts
37be0a164f [DOCS] Adding ML-specific prerequisites to setup docs (#42529) 2019-05-24 10:44:51 -07:00
James Rodewig
9b800a5801
[DOCS] Fix nested def list for Asciidoctor (#42353) 2019-05-24 13:39:29 -04:00
Lisa Cawley
ffa5461b7f
[DOCS] Removes X-Pack Java client configuration (#42480) 2019-05-24 09:31:24 -07:00
Lisa Cawley
dfc3b8e416
[DOCS] Removes X-Pack setup (#42481) 2019-05-24 09:00:38 -07:00
Lisa Cawley
6e307d9fee
[DOCS] Removes inclusion of java.asciidoc (#42459) 2019-05-23 14:05:38 -07:00
David Roberts
a15f1ee4f6
[ML] Improve file structure finder timestamp format determination (#41948)
This change contains a major refactoring of the timestamp
format determination code used by the ML find file structure
endpoint.

Previously timestamp format determination was done separately
for each piece of text supplied to the timestamp format finder.
This had the drawback that it was not possible to distinguish
dd/MM and MM/dd in the case where both numbers were 12 or less.
In order to do this sensibly it is best to look across all the
available timestamps and see if one of the numbers is greater
than 12 in any of them.  This necessitates making the timestamp
format finder an instantiable class that can accumulate evidence
over time.

Another problem with the previous approach was that it was only
possible to override the timestamp format to one of a limited
set of timestamp formats.  There was no way out if a file to be
analysed had a timestamp that was sane yet not in the supported
set.  This is now changed to allow any timestamp format that can
be parsed by a combination of these Java date/time formats:
yy, yyyy, M, MM, MMM, MMMM, d, dd, EEE, EEEE, H, HH, h, mm, ss,
a, XX, XXX, zzz
Additionally S letter groups (fractional seconds) are supported
providing they occur after ss and separated from the ss by a dot,
comma or colon.  Spacing and punctuation is also permitted with
the exception of the question mark, newline and carriage return
characters, together with literal text enclosed in single quotes.

The full list of changes/improvements in this refactor is:

- Make TimestampFormatFinder an instantiable class
- Overrides must be specified in Java date/time format - Joda
  format is no longer accepted
- Joda timestamp formats in outputs are now derived from the
  determined or overridden Java timestamp formats, not stored
  separately
- Functionality for determining the "best" timestamp format in
  a set of lines has been moved from TextLogFileStructureFinder
  to TimestampFormatFinder, taking advantage of the fact that
  TimestampFormatFinder is now an instantiable class with state
- The functionality to quickly rule out some possible Grok
  patterns when looking for timestamp formats has been changed
  from using simple regular expressions to the much faster
  approach of using the Shift-And method of sub-string search,
  but using an "alphabet" consisting of just 1 (representing any
  digit) and 0 (representing non-digits)
- Timestamp format overrides are now much more flexible
- Timestamp format overrides that do not correspond to a built-in
  Grok pattern are mapped to a %{CUSTOM_TIMESTAMP} Grok pattern
  whose definition is included within the date processor in the
  ingest pipeline
- Grok patterns that correspond to multiple Java date/time
  patterns are now handled better - the Grok pattern is accepted
  as matching broadly, and the required set of Java date/time
  patterns is built up considering all observed samples
- As a result of the more flexible acceptance of Grok patterns,
  when looking for the "best" timestamp in a set of lines
  timestamps are considered different if they are preceded by
  a different sequence of punctuation characters (to prevent
  timestamps far into some lines being considered similar to
  timestamps near the beginning of other lines)
- Out-of-the-box Grok patterns that are considered now include
  %{DATE} and %{DATESTAMP}, which have indeterminate day/month
  ordering
- The order of day/month in formats with indeterminate day/month
  order is determined by considering all observed samples (plus
  the server locale if the observed samples still do not suggest
  an ordering)

Relates #38086
Closes #35137
Closes #35132
2019-05-23 21:06:47 +01:00
Jason Tedor
1b0c728cfa
Remove deprecated search.remote settings (#42381)
We deprecated these settings awhile ago, in favor of cluster.remote. In
7.x we were gentle and provided automatic upgrade of these settings to
the new settings. Now it is time for them to go. This commit removes the
deprecated search.remote settings.
2019-05-23 08:06:07 -07:00
Luca Cavanna
13dc1cf6b1
Update max_concurrent_shard_request parameter docs (#42227)
Some of the docs were outdated as they did not mention that the limit is
not per node. Also, The default value changed.

Relates to #31206
2019-05-23 16:02:46 +02:00
Yannick Welsch
c459ea828f
Remove node.max_local_storage_nodes (#42428)
This setting, which prior to Elasticsearch 5 was enabled by default and caused all kinds of
confusion, has since been disabled by default and is not recommended for production use. The
preferred way going forward is for users to explicitly specify separate data folders for each started
node to ensure that each node is consistently assigned to the same data path.

Relates to #42426
2019-05-23 16:02:12 +02:00
Simon Willnauer
cb402220d8
Remove deprecated Repository methods (#42359)
We deprecated `restoreShard` and `snapshotShard` in #42213
This change removes the deprecated methods and their usage and adds
a note in the migration docs.
2019-05-23 12:29:39 +02:00
swstepp
943344fa48 Fix grammar problem in stemming reference. (#42148) 2019-05-22 09:44:41 -07:00
Julie Tibshirani
148df31639
Fix a rendering issue in the geo envelope docs. (#42332)
Previously the formatting information didn't display in the docs, and the
sentence just rendered as "bounding rectangle in the format :".
2019-05-22 09:19:14 -07:00
Alpar Torok
28aae648fe
TestClusters: Convert docs (#42100)
* TestClusters: Convert docs
2019-05-22 14:25:54 +03:00
Christoph Büscher
5fb55f62be
Remove type-related methods from QueryBuilders (#42284)
Removes all deprecated type-related methods from the QueryBuilders helper class
and from tests using them. Also removing related docs tests and doc pages
refering to the `type` query. All removed methods have been deprecated since
version 7.0.
2019-05-22 05:15:54 -04:00
Jack Conradson
c59fbb3358
Reorganize Painless doc structure (#42303) 2019-05-21 13:47:47 -04:00
MK Swanson
b8be2d0539
[DOCS] Copied note on slicing support to Slicing section. Closes 26114 (#40426) 2019-05-21 11:20:36 -04:00
Glen Smith
c8974045ae Remove stray back tick that's messing up table format (#41705) 2019-05-21 08:59:40 -04:00
Kamyar Ghajar
026c96d74f Add missing comma in code section (#41678)
Missing comma in code section (line 114) is added to the doc file.
2019-05-21 08:51:51 -04:00
Mayya Sharipova
6f8dfeb6b5
Add experimental and warnings to vector functions (#42205) 2019-05-21 06:36:38 -04:00
David Turner
749135b37c
Prevent in-place downgrades and invalid upgrades (#41731)
Downgrading an Elasticsearch node to an earlier version is unsupported, because
we do not make any attempt to guarantee that a node can read any of the on-disk
data written by a future version. Yet today we do not actively prevent
downgrades, and sometimes users will attempt to roll back a failed upgrade with
an in-place downgrade and get into an unrecoverable state.

This change adds the current version of the node to the node metadata file, and
checks the version found in this file against the current version at startup.
If the node cannot be sure of its ability to read the on-disk data then it
refuses to start, preserving any on-disk data in its upgraded state.

This change also adds a command-line tool to overwrite the node metadata file
without performing any version checks, to unsafely bypass these checks and
recover the historical and lenient behaviour.
2019-05-21 07:52:01 +01:00
Lisa Cawley
9002be4e61
[DOCS] Updates TLS configuration info (#41983) 2019-05-20 09:06:42 -04:00
Nhat Nguyen
0729dc49ca
Minor improvement translog docs (#42184)
Closes #42183
2019-05-19 20:43:41 -04:00
Ryan Ernst
f45a4731bb
Remove the migrate tool (#42174)
This commit removes the deprecated migrate tool which was used to
migrate users from the file realm to native realm when the native realm
was first created.
2019-05-17 14:49:05 -04:00
David Turner
f3dbfdb444
Clarify rolling upgrade fallback to restart upgrade (#42161)
Adds a note that restarting half-or-more of the master-eligible nodes means
you're no longer doing a rolling upgrade, and may need to upgrade all the
things before the cluster returns to health.
2019-05-16 13:36:09 -04:00
Hendrik Muhs
06cfc7ad43
[DOCS] add a warning about bypassing PUT API's, update example responses (#42062)
Configurations are stored in the .data-frame-internal-1
index, but users should not add configurations directly to
the index as additional information to enable access control
is added. This adds a warning against allowing access to the
internal index.
2019-05-16 10:10:23 -04:00
Ryan Ernst
f16209ada7
Deprecate the native realm migration tool (#42142)
The migrate tool was added when the native realm was created, to aid
users in converting from file realms that were per node, into the
cluster managed native realm. While this tool was useful at the time,
users should now be using the native realm directly. This commit
deprecates the tool, to be removed in a followup for 8.0.
2019-05-16 09:52:13 -04:00
Igor Motov
3ac6d527a1
Docs: Mark SQL Geo functionality as beta (#42138)
Adds beta marker to geosql documentation
2019-05-15 10:50:54 -04:00
David Turner
ed3230b3eb
Minor cluster coordination docs fixes (#42111)
Fixes a typo and a badly-formatted warning.
2019-05-15 09:26:04 -04:00
Igor Motov
0b94416cc1
SQL: Add initial geo support (#42031)
Adds an initial limited implementations of geo features to SQL. This implementation is based on the [OpenGIS® Implementation Standard for Geographic information - Simple feature access](http://www.opengeospatial.org/standards/sfs), which is the current standard for GIS system implementation. This effort is concentrate on SQL option AKA ISO 19125-2. 

## Queries that are supported as a result of this initial implementation

###  Metadata commands

- `DESCRIBE table`  - returns the correct column types `GEOMETRY` for geo shapes and geo points.
- `SHOW FUNCTIONS` - returns a list that includes supported `ST_` functions
- `SYS TYPES` and `SYS COLUMNS` display correct types `GEO_SHAPE` and `GEO_POINT` for geo shapes and geo points accordingly. 

### Returning geoshapes and geopoints from elasticsearch

- `SELECT geom FROM table` - returns the geoshapes and geo_points as libs/geo objects in JDBC or as WKT strings in console.
- `SELECT ST_AsWKT(geom) FROM table;` and `SELECT ST_AsText(geom) FROM table;`- returns the geoshapes ang geopoints in their WKT representation;

### Using geopoints to elasticsearch

- The following functions will be supported for geopoints in queries, sorting and aggregations: `ST_GeomFromText`, `ST_X`, `ST_Y`, `ST_Z`, `ST_GeometryType`, and `ST_Distance`. In most cases when used in queries, sorting and aggregations, these function are translated into script. These functions can be used in the SELECT clause for both geopoints and geoshapes. 
- `SELECT * FROM table WHERE ST_Distance(ST_GeomFromText(POINT(1 2), point) < 10;` - returns all records for which `point` is located within 10m from the `POINT(1 2)`. In this case the WHERE clause is translated into a range query.

## Limitations:

Geoshapes cannot be used in queries, sorting and aggregations as part of this initial effort. In order to fully take advantage of geoshapes we would need to have access to geoshape doc values, which is coming in #37206. `ST_Z` cannot be used on geopoints in queries, sorting and aggregations since we don't store altitude in geo_point doc values.

Relates to #29872
2019-05-13 22:17:10 -04:00