Skip to content

Commit

Permalink
Merge branch 'main' into feature/timestamp-and-hostname-sparse-index
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-campagna authored Jan 24, 2025
2 parents 4b54de6 + 39c4eda commit 4b6b87d
Show file tree
Hide file tree
Showing 29 changed files with 677 additions and 525 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/120617.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 120617
summary: Fix queries with document level security on lookup indexes
area: ES|QL
type: bug
issues: [120509]
5 changes: 5 additions & 0 deletions docs/changelog/120781.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 120781
summary: Add back `keep_alive` to `async_search.submit` rest-api-spec
area: Search
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
"description":"Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false)",
"default":false
},
"keep_alive": {
"type": "time",
"description": "Update the time interval in which the results (partial or final) for this search will be available",
"default": "5d"
},
"batched_reduce_size":{
"type":"number",
"description":"The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available.",
Expand Down
6 changes: 6 additions & 0 deletions x-pack/plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,11 @@ tasks.named("yamlRestCompatTestTransform").configure({ task ->
task.skipTest("esql/180_match_operator/match with non text field", "Match operator can now be used on non-text fields")
task.skipTest("esql/180_match_operator/match with functions", "Error message changed")
task.skipTest("esql/40_unsupported_types/semantic_text declared in mapping", "The semantic text field format changed")
task.skipTest("esql/190_lookup_join/Alias as lookup index", "LOOKUP JOIN does not support index aliases for now")
task.skipTest("esql/190_lookup_join/alias-repeated-alias", "LOOKUP JOIN does not support index aliases for now")
task.skipTest("esql/190_lookup_join/alias-repeated-index", "LOOKUP JOIN does not support index aliases for now")
task.skipTest("esql/190_lookup_join/alias-pattern-multiple", "LOOKUP JOIN does not support index aliases for now")
task.skipTest("esql/190_lookup_join/alias-pattern-single", "LOOKUP JOIN does not support index aliases for now")

})

Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ private static String maybeRewriteSingleAuthenticationHeaderForVersion(
public static final String APM_ORIGIN = "apm";
public static final String OTEL_ORIGIN = "otel";
public static final String REINDEX_DATA_STREAM_ORIGIN = "reindex_data_stream";
// TODO consolidate the Kibana origin with the one defined in org/elasticsearch/kibana/KibanaPlugin.java
public static final String KIBANA_ORIGIN = "kibana";
public static final String CLOUD_ORIGIN = "cloud";

private ClientHelper() {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"template": {
"aliases": {
".elastic-connectors-sync-jobs": {}
},
"mappings": {
"dynamic": "false",
"settings": {
"index": {
"number_of_shards": "1",
"auto_expand_replicas": "0-1"
}
},
"mappings": {
"_doc": {
"dynamic": "strict",
"_meta": {
"version": ${xpack.application.connector.template.version}
"version": "${elastic-connectors-sync-jobs.version}",
"managed_index_mappings_version": ${elastic-connectors-sync-jobs.managed.index.version}
},
"properties": {
"cancelation_requested_at": {
Expand All @@ -21,9 +25,11 @@
"connector": {
"properties": {
"configuration": {
"dynamic": "false",
"type": "object"
},
"filtering": {
"dynamic": "false",
"properties": {
"advanced_snippet": {
"properties": {
Expand Down Expand Up @@ -91,6 +97,7 @@
"type": "keyword"
},
"pipeline": {
"dynamic": "false",
"properties": {
"extract_binary_content": {
"type": "boolean"
Expand All @@ -110,6 +117,7 @@
"type": "keyword"
},
"sync_cursor": {
"dynamic": "false",
"type": "object"
}
}
Expand All @@ -136,6 +144,7 @@
"type": "date"
},
"metadata": {
"dynamic": "false",
"type": "object"
},
"started_at": {
Expand All @@ -155,10 +164,5 @@
}
}
}
},
"_meta": {
"description": "Built-in mappings applied by default to elastic-connectors indices",
"managed": true
},
"version": ${xpack.application.connector.template.version}
}
}
Original file line number Diff line number Diff line change
@@ -1,36 +1,43 @@
{
"template": {
"aliases": {
".elastic-connectors": {}
},
"mappings": {
"dynamic": "false",
"settings": {
"index": {
"number_of_shards": "1",
"auto_expand_replicas": "0-1"
}
},
"mappings": {
"_doc": {
"dynamic": "strict",
"_meta": {
"pipeline": {
"default_name": "search-default-ingestion",
"default_extract_binary_content": true,
"default_run_ml_inference": true,
"default_reduce_whitespace": true
},
"version": ${xpack.application.connector.template.version}
"version": "${elastic-connectors.version}",
"managed_index_mappings_version": ${elastic-connectors.managed.index.version}
},
"properties": {
"api_key_id": {
"type": "keyword"
},
"api_key_secret_id": {
"type": "keyword"
},
"configuration": {
"dynamic": "false",
"type": "object"
},
"custom_scheduling": {
"dynamic": "false",
"type": "object"
},
"deleted": {
"type": "boolean"
},
"description": {
"type": "text"
},
"error": {
"type": "keyword"
},
"features": {
"dynamic": "false",
"properties": {
"filtering_advanced_config": {
"type": "boolean"
Expand Down Expand Up @@ -66,6 +73,7 @@
}
},
"filtering": {
"dynamic": "false",
"properties": {
"active": {
"properties": {
Expand All @@ -78,6 +86,7 @@
"type": "date"
},
"value": {
"dynamic": "false",
"type": "object"
}
}
Expand Down Expand Up @@ -143,6 +152,7 @@
"type": "date"
},
"value": {
"dynamic": "false",
"type": "object"
}
}
Expand Down Expand Up @@ -242,6 +252,7 @@
"type": "keyword"
},
"pipeline": {
"dynamic": "false",
"properties": {
"extract_binary_content": {
"type": "boolean"
Expand All @@ -258,6 +269,7 @@
}
},
"scheduling": {
"dynamic": "false",
"properties": {
"access_control": {
"properties": {
Expand Down Expand Up @@ -298,22 +310,13 @@
"type": "keyword"
},
"sync_cursor": {
"dynamic": "false",
"type": "object"
},
"sync_now": {
"type": "boolean"
},
"deleted": {
"type": "boolean"
}
}
}
},
"_meta": {
"description": "Built-in mappings applied by default to elastic-connectors indices",
"managed": true
},
"version": ${xpack.application.connector.template.version}
}
}


This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import org.elasticsearch.xpack.application.analytics.action.TransportPutAnalyticsCollectionAction;
import org.elasticsearch.xpack.application.analytics.ingest.AnalyticsEventIngestConfig;
import org.elasticsearch.xpack.application.connector.ConnectorAPIFeature;
import org.elasticsearch.xpack.application.connector.ConnectorIndexService;
import org.elasticsearch.xpack.application.connector.ConnectorTemplateRegistry;
import org.elasticsearch.xpack.application.connector.action.DeleteConnectorAction;
import org.elasticsearch.xpack.application.connector.action.GetConnectorAction;
Expand Down Expand Up @@ -124,6 +125,7 @@
import org.elasticsearch.xpack.application.connector.secrets.action.TransportGetConnectorSecretAction;
import org.elasticsearch.xpack.application.connector.secrets.action.TransportPostConnectorSecretAction;
import org.elasticsearch.xpack.application.connector.secrets.action.TransportPutConnectorSecretAction;
import org.elasticsearch.xpack.application.connector.syncjob.ConnectorSyncJobIndexService;
import org.elasticsearch.xpack.application.connector.syncjob.action.CancelConnectorSyncJobAction;
import org.elasticsearch.xpack.application.connector.syncjob.action.CheckInConnectorSyncJobAction;
import org.elasticsearch.xpack.application.connector.syncjob.action.ClaimConnectorSyncJobAction;
Expand Down Expand Up @@ -477,7 +479,12 @@ public Collection<?> createComponents(PluginServices services) {
@Override
public Collection<SystemIndexDescriptor> getSystemIndexDescriptors(Settings settings) {
Collection<SystemIndexDescriptor> systemIndices = new ArrayList<>(
List.of(SearchApplicationIndexService.getSystemIndexDescriptor(), QueryRulesIndexService.getSystemIndexDescriptor())
List.of(
SearchApplicationIndexService.getSystemIndexDescriptor(),
QueryRulesIndexService.getSystemIndexDescriptor(),
ConnectorSyncJobIndexService.getSystemIndexDescriptor(),
ConnectorIndexService.getSystemIndexDescriptor()
)
);

if (ConnectorSecretsFeature.isEnabled()) {
Expand Down
Loading

0 comments on commit 4b6b87d

Please sign in to comment.