Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/magento] add OpenSearch as a search engine option #63946

Conversation

vtkstef
Copy link

@vtkstef vtkstef commented Mar 20, 2024

Description of the change

add OpenSearch as a search engine option for Magento. Option ealasticsearch5 and elasticsearch6 are
no longer supported during setup/bootstrap in magento 2.4.6

Benefits

OpenSearch has a more permissive open source license (hence the fork from elastic search by amazon)

Possible drawbacks

n/a

Applicable issues

Additional information

Option ealasticsearch5 and elasticsearch6 areno longer supported during setup/bootstrap in magento 2.4.6

Signed-off-by: vtkstef <stefano.santoro@toasttab.com>
@github-actions github-actions bot added magento triage Triage is needed labels Mar 20, 2024
@github-actions github-actions bot requested a review from javsalgar March 20, 2024 14:13
@carrodher carrodher added verify Execute verification workflow for these changes in-progress labels Mar 20, 2024
@github-actions github-actions bot removed the triage Triage is needed label Mar 20, 2024
@github-actions github-actions bot removed the request for review from javsalgar March 20, 2024 16:10
@github-actions github-actions bot requested a review from mdhont March 20, 2024 16:11
Copy link

github-actions bot commented Apr 5, 2024

This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.

@github-actions github-actions bot added the stale 15 days without activity label Apr 5, 2024
@vtkstef
Copy link
Author

vtkstef commented Apr 6, 2024

@carrodher FYI can you please reset the timer on this PR. Thanks

@mdhont
Copy link
Contributor

mdhont commented Apr 10, 2024

We are going to review this logic internally and we will notify you in this PR when there is any news.
Thank you very much for the contribution!

Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Pull Request. Do not hesitate to reopen it later if necessary.

@vtkstef
Copy link
Author

vtkstef commented Apr 17, 2024

Ping @mdhont

@github-actions github-actions bot removed the solved label Apr 18, 2024
@carrodher carrodher removed the request for review from mdhont April 22, 2024 09:56
@carrodher carrodher added in-progress and removed stale 15 days without activity in-progress labels Apr 22, 2024
Copy link
Member

@dgomezleon dgomezleon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this contribution. I just added a couple of minor suggestions.

# Define whether Opensearch auth is enabled
local oss_auth="0"
is_boolean_yes "$MAGENTO_OPENSEARCH_ENABLE_AUTH" && oss_auth="1"
# Elasticsearch configuration is stored in the database, so we only need to specify for 'setup:install'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Elasticsearch configuration is stored in the database, so we only need to specify for 'setup:install'
# OpenSearch configuration is stored in the database, so we only need to specify for 'setup:install'

@@ -228,6 +265,10 @@ magento_initialize() {
info "Trying to connect to Elasticsearch"
magento_wait_for_es_connection "$es_host" "$es_port"
fi
if [[ "$MAGENTO_SEARCH_ENGINE" =~ ^opensearch ]]; then
info "Trying to connect to Opensearch"
magento_wait_for_es_connection "$oss_host" "$oss_port"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rename this function to something generic. E.g. magento_wait_for_search_engine_connection or similar.

if [[ "$MAGENTO_SEARCH_ENGINE" =~ ^opensearch ]]; then
oss_host="$MAGENTO_OPENSEARCH_HOST"
oss_port="$MAGENTO_OPENSEARCH_PORT_NUMBER"
info "Trying to connect to Elasticsearch"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
info "Trying to connect to Elasticsearch"
info "Trying to connect to OpenSearch"

Copy link

github-actions bot commented May 8, 2024

This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.

@github-actions github-actions bot added the stale 15 days without activity label May 8, 2024
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Pull Request. Do not hesitate to reopen it later if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
magento solved stale 15 days without activity verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support opensearch as magento search engine option
5 participants