Skip to content

Commit

Permalink
Replace 'ent-search-generic' with 'search-default' pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstory committed Dec 17, 2024
1 parent 6560922 commit 1f1087c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion connectors/cli/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def __create_connector(
"custom_scheduling": {},
"pipeline": {
"extract_binary_content": True,
"name": "ent-search-generic-ingestion",
"name": "search-default-ingestion",
"reduce_whitespace": True,
"run_ml_inference": True,
},
Expand Down
2 changes: 1 addition & 1 deletion connectors/kibana.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def prepare(service_type, index_name, config, connector_definition=None):
connector_index = ConnectorIndex(config["elasticsearch"])

await es.ensure_ingest_pipeline_exists(
"ent-search-generic-ingestion",
"search-default-ingestion",
DEFAULT_PIPELINE["version"],
DEFAULT_PIPELINE["description"],
DEFAULT_PIPELINE["processors"],
Expand Down
2 changes: 1 addition & 1 deletion connectors/protocol/connectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def transform_filtering(self):


PIPELINE_DEFAULT = {
"name": "ent-search-generic-ingestion",
"name": "search-default-ingestion",
"extract_binary_content": True,
"reduce_whitespace": True,
"run_ml_inference": True,
Expand Down
2 changes: 1 addition & 1 deletion docs/CONNECTOR_PROTOCOL.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ This is our main communication index, used to communicate the connector's config
"_meta" : {
"pipeline" : {
"default_extract_binary_content" : true,
"default_name" : "ent-search-generic-ingestion",
"default_name" : "search-default-ingestion",
"default_reduce_whitespace" : true,
"default_run_ml_inference" : true
},
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/connector.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"scheduling": {"full": {"enabled": true, "interval": "1 * * * * *"}},
"pipeline": {
"extract_binary_content": true,
"name": "ent-search-generic-ingestion",
"name": "search-default-ingestion",
"reduce_whitespace": true,
"run_ml_inference": true
}
Expand Down
2 changes: 1 addition & 1 deletion tests/protocol/test_connectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2300,7 +2300,7 @@ def test_has_validation_state(
@pytest.mark.parametrize(
"key, value, default_value",
[
("name", "foobar", "ent-search-generic-ingestion"),
("name", "foobar", "search-default-ingestion"),
("extract_binary_content", False, True),
("reduce_whitespace", False, True),
("run_ml_inference", False, True),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_kibana.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_main(patch_logger, mock_responses):
)
mock_index_creation("data", mock_responses, hidden=False)
mock_responses.get(
"http://nowhere.com:9200/_ingest/pipeline/ent-search-generic-ingestion",
"http://nowhere.com:9200/_ingest/pipeline/search-default-ingestion",
headers=headers,
repeat=True,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_service_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_main_exits_on_sigterm(mock_responses):
mock_responses.head(f"{host}/.elastic-connectors", headers=headers)
mock_responses.head(f"{host}/.elastic-connectors-sync-jobs", headers=headers)
mock_responses.get(
f"{host}/_ingest/pipeline/ent-search-generic-ingestion", headers=headers
f"{host}/_ingest/pipeline/search-default-ingestion", headers=headers
)

async def kill():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def set_responses(mock_responses, ts=None):
)

mock_responses.put(
"http://nowhere.com:9200/_bulk?pipeline=ent-search-generic-ingestion",
"http://nowhere.com:9200/_bulk?pipeline=search-default-ingestion",
payload={
"took": 7,
"errors": False,
Expand Down

0 comments on commit 1f1087c

Please sign in to comment.