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

AWS access point credentials #29

Open
watchwood opened this issue Aug 31, 2022 · 5 comments
Open

AWS access point credentials #29

watchwood opened this issue Aug 31, 2022 · 5 comments

Comments

@watchwood
Copy link

What exactly is the plugin looking for in terms of username and password for connected to an ES instance on AWS? Is it the Access Key / Private Key, or something else?

@nstCactus
Copy link
Member

nstCactus commented Aug 31, 2022 via email

@nstCactus
Copy link
Member

This looks like a world of trouble!

Apparently one has to use the access key id and secret key to somehow sign each Elasticsearch request. The AWS documentation provides examples in a few languages but nothing for PHP.

I found this https://aws.plainenglish.io/hiking-on-aws-sign-php-elasticsearch-client-requests-for-amazon-elasticsearch-service-be08c8e9dcd0 that explains how to do it, but the plugin doesn't use that client.

@watchwood
Copy link
Author

Ya, it's not ideal. Right now I'm trying to bypass it by setting up a local ES instance on the server.

For a semi-unrelated follow up question, is there a way to force the plugin to ignore/suppress pages that throw errors when forcing it to reindex the whole site?

@watchwood
Copy link
Author

Another follow up question, is there a way to have the plugin weight specific entries more/less in the search results rankings?

@nstCactus
Copy link
Member

Sorry for the late reply, we've been quite busy.

is there a way to force the plugin to ignore/suppress pages that throw errors when forcing it to reindex the whole site?

Could you describe, in a new issue, the problem you're facing so that I can investigate on this?

is there a way to have the plugin weight specific entries more/less in the search results rankings?

The plugin relies on Elasticsearch internal scoring to rank search results. What you could do is listen to the lhs\elasticsearch\record\ElasticsearchRecord::EVENT_BEFORE_SAVE event to mutate the search query in order to alter Elasticsearch results scores.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants