Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
n1v0lg committed Aug 30, 2023
2 parents 1121138 + b6c85db commit df2c9a8
Show file tree
Hide file tree
Showing 292 changed files with 1,210 additions and 819 deletions.
17 changes: 17 additions & 0 deletions branches.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"notice": "This file is not maintained outside of the main branch and should only be used for tooling.",
"branches": [
{
"branch": "main"
},
{
"branch": "8.10"
},
{
"branch": "8.9"
},
{
"branch": "7.17"
}
]
}
5 changes: 5 additions & 0 deletions docs/changelog/98961.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 98961
summary: Fix NPE when `GetUser` with profile uid before profile index exists
area: Security
type: bug
issues: []
5 changes: 2 additions & 3 deletions docs/reference/esql/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ POST /_query?format=txt
[discrete]
==== {kib}

{esql} can be used in Discover to explore a data set, and in Lens to visualize it.
First, enable the `enableTextBased` setting in *Advanced Settings*. Next, in
Discover or Lens, from the data view dropdown, select *{esql}*.
Use {esql} in Discover to explore a data set. From the data view dropdown,
select *Try {esql}* to get started.

NOTE: {esql} queries in Discover and Lens are subject to the time range selected
with the time filter.
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/modules/threadpool.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ There are several thread pools, but the important ones include:
size of `16`.

`write`::
For single-document index/delete/update and bulk requests. Thread pool type
For single-document index/delete/update, ingest processors, and bulk requests. Thread pool type
is `fixed` with a size of <<node.processors, `# of allocated processors`>>,
queue_size of `10000`. The maximum size for this pool is
`pass:[1 + ]`<<node.processors, `# of allocated processors`>>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,9 @@ PUT my-index
* {ml-docs}/ml-nlp-elser.html[How to download and deploy ELSER]
* {ml-docs}/ml-nlp-limitations.html#ml-nlp-elser-v1-limit-512[ELSER v1 limitation]
* https://www.elastic.co/blog/may-2023-launch-information-retrieval-elasticsearch-ai-model[Improving information retrieval in the Elastic Stack: Introducing Elastic Learned Sparse Encoder, our new retrieval model]

[discrete]
[[interactive-example]]
==== Interactive example

* The `elasticsearch-labs` repo has an interactive example of running https://github.com/elastic/elasticsearch-labs/blob/main/notebooks/search/03-ELSER.ipynb[ELSER-powered semantic search] using the {es} Python client.
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,7 @@ include::{es-repo-dir}/tab-widgets/semantic-search/hybrid-search-widget.asciidoc
*** {blog-ref}improving-information-retrieval-elastic-stack-benchmarking-passage-retrieval[Part 2: Benchmarking passage retrieval]
*** {blog-ref}may-2023-launch-information-retrieval-elasticsearch-ai-model[Part 3: Introducing Elastic Learned Sparse Encoder, our new retrieval model]
*** {blog-ref}improving-information-retrieval-elastic-stack-hybrid[Part 4: Hybrid retrieval]
* Interactive examples:
** The https://github.com/elastic/elasticsearch-labs[`elasticsearch-labs`] repo contains a number of interactive semantic search examples in the form of executable Python notebooks, using the {es} Python client

include::semantic-search-elser.asciidoc[]
include::semantic-search-elser.asciidoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,14 @@ direct indices:data/read/eql 10m node_1 true
// TEST[skip:illustrative response only]

This surfaces a problematic <<eql-search-api,EQL query>>. We can gain
further insight on it via <<tasks,the task management API>>. Its response
contains a `description` that reports this query:
further insight on it via <<tasks,the task management API>>,

[source,console]
----
GET _tasks?human&detailed
----

Its response contains a `description` that reports this query:

[source,eql]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public InternalAutoDateHistogram(StreamInput in) throws IOException {
protected void doWriteTo(StreamOutput out) throws IOException {
bucketInfo.writeTo(out);
out.writeNamedWriteable(format);
out.writeList(buckets);
out.writeCollection(buckets);
out.writeVInt(targetBuckets);
if (out.getTransportVersion().onOrAfter(TransportVersion.V_8_3_0)) {
out.writeVLong(bucketInnerInterval);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public BucketSortPipelineAggregationBuilder(StreamInput in) throws IOException {

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
out.writeList(sorts);
out.writeCollection(sorts);
out.writeVInt(from);
out.writeOptionalVInt(size);
gapPolicy.writeTo(out);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public RolloverConfiguration getRolloverConfiguration() {

@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeList(indices);
out.writeCollection(indices);
out.writeOptionalWriteable(rolloverConfiguration);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public RolloverConfiguration getRolloverConfiguration() {

@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeList(dataStreamLifecycles);
out.writeCollection(dataStreamLifecycles);
out.writeOptionalWriteable(rolloverConfiguration);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected List<NodeResponse> readNodesFrom(StreamInput in) throws IOException {

@Override
protected void writeNodesTo(StreamOutput out, List<NodeResponse> nodes) throws IOException {
out.writeList(nodes);
out.writeCollection(nodes);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public MultiSearchTemplateRequest indicesOptions(IndicesOptions indicesOptions)
public void writeTo(StreamOutput out) throws IOException {
super.writeTo(out);
out.writeVInt(maxConcurrentSearchRequests);
out.writeList(requests);
out.writeCollection(requests);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ public PainlessContextClassInfo(StreamInput in) throws IOException {
public void writeTo(StreamOutput out) throws IOException {
out.writeString(name);
out.writeBoolean(imported);
out.writeList(constructors);
out.writeList(staticMethods);
out.writeList(methods);
out.writeList(staticFields);
out.writeList(fields);
out.writeCollection(constructors);
out.writeCollection(staticMethods);
out.writeCollection(methods);
out.writeCollection(staticFields);
out.writeCollection(fields);
}

public static PainlessContextClassInfo fromXContent(XContentParser parser) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ public PainlessContextInfo(StreamInput in) throws IOException {
@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeString(name);
out.writeList(classes);
out.writeList(importedMethods);
out.writeList(classBindings);
out.writeList(instanceBindings);
out.writeCollection(classes);
out.writeCollection(importedMethods);
out.writeCollection(classBindings);
out.writeCollection(instanceBindings);
}

public static PainlessContextInfo fromXContent(XContentParser parser) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ setup:
properties:
vector:
type: dense_vector
index: false
dims: 5
indexed_vector:
type: dense_vector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ setup:
properties:
vector:
type: dense_vector
index: false
element_type: byte
dims: 5
indexed_vector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ setup:
mappings:
properties:
my_dense_vector:
index: false
type: dense_vector
dims: 5
- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ setup:
mappings:
properties:
my_dense_vector:
index: false
type: dense_vector
element_type: byte
dims: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ setup:
properties:
vector:
type: dense_vector
index: false
dims: 3
indexed_vector:
type: dense_vector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ setup:
properties:
vector:
type: dense_vector
index: false
element_type: byte
dims: 3
indexed_vector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
mappings:
properties:
v:
index: false
type: dense_vector
dims: 3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ setup:
properties:
v:
type: dense_vector
index: false
element_type: byte
dims: 3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
properties:
bdv:
type: dense_vector
index: false
dims: 3
knn:
type: dense_vector
Expand Down Expand Up @@ -100,6 +101,7 @@
properties:
bdv:
type: dense_vector
index: false
dims: 3
knn:
type: dense_vector
Expand Down Expand Up @@ -186,6 +188,7 @@
properties:
bdv:
type: dense_vector
index: false
dims: 3
knn:
type: dense_vector
Expand Down Expand Up @@ -306,6 +309,7 @@
bdv:
type: dense_vector
dims: 3
index: false
knn:
type: dense_vector
dims: 3
Expand Down Expand Up @@ -423,6 +427,7 @@
properties:
bdv:
type: dense_vector
index: false
dims: 3
knn:
type: dense_vector
Expand Down Expand Up @@ -499,6 +504,7 @@
properties:
bdv:
type: dense_vector
index: false
dims: 3
knn:
type: dense_vector
Expand Down Expand Up @@ -601,6 +607,7 @@
properties:
bdv:
type: dense_vector
index: false
dims: 3
knn:
type: dense_vector
Expand Down Expand Up @@ -719,6 +726,7 @@
properties:
bdv:
type: dense_vector
index: false
dims: 3
knn:
type: dense_vector
Expand Down Expand Up @@ -817,6 +825,7 @@
properties:
bdv:
type: dense_vector
index: false
dims: 3
knn:
type: dense_vector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ setup:
properties:
bdv:
type: dense_vector
index: false
element_type: byte
dims: 3
knn:
Expand Down Expand Up @@ -99,6 +100,7 @@ setup:
properties:
bdv:
type: dense_vector
index: false
dims: 3
knn:
type: dense_vector
Expand Down Expand Up @@ -181,6 +183,7 @@ setup:
properties:
bdv:
type: dense_vector
index: false
element_type: byte
dims: 3
knn:
Expand Down Expand Up @@ -298,6 +301,7 @@ setup:
bdv:
type: dense_vector
element_type: byte
index: false
dims: 3
knn:
type: dense_vector
Expand Down Expand Up @@ -411,6 +415,7 @@ setup:
properties:
bdv:
type: dense_vector
index: false
element_type: byte
dims: 3
knn:
Expand Down Expand Up @@ -485,6 +490,7 @@ setup:
properties:
bdv:
type: dense_vector
index: false
element_type: byte
dims: 3
knn:
Expand Down Expand Up @@ -583,6 +589,7 @@ setup:
properties:
bdv:
type: dense_vector
index: false
element_type: byte
dims: 3
knn:
Expand Down Expand Up @@ -697,6 +704,7 @@ setup:
properties:
bdv:
type: dense_vector
index: false
element_type: byte
dims: 3
knn:
Expand Down Expand Up @@ -792,6 +800,7 @@ setup:
properties:
bdv:
type: dense_vector
index: false
element_type: byte
dims: 3
knn:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public MultiLineStringBuilder() {

@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeList(lines);
out.writeCollection(lines);
}

public MultiLineStringBuilder linestring(LineStringBuilder line) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public MultiPolygonBuilder(StreamInput in) throws IOException {
@Override
public void writeTo(StreamOutput out) throws IOException {
orientation.writeTo(out);
out.writeList(polygons);
out.writeCollection(polygons);
}

public Orientation orientation() {
Expand Down
Loading

0 comments on commit df2c9a8

Please sign in to comment.