Its own password for each index
Every search and every update sent straight to an index needs its username and password. A new index starts with your master API key as its password, and generating a new key later does not change it. Give each index you use a password of its own.
How
- Open the index in the Control Panel and click Security.
- Under Authentication, type the new Username and Password. Letters and digits only.
- Click Save and keep the password somewhere safe: the form does not show it again.
All the steps: HTTP Basic Auth.
What happens at once
- The new password works in about 10 seconds. The old one stops at the same time.
- Opensolr's own features on this index keep working: the hosted search page, the Chat Bot, AI answers, Data Ingestion, the web crawler and the Control Panel tools read the new password themselves.
- Your master API key and your scoped keys do not change.
What you have to update
Everything that sends the old password to the index gets 401 Unauthorized until it has the new one:
- Drupal Opensolr Search: in its settings, under Use an existing index, pick the same index, leave both boxes unticked and click Save Settings. The module reads the new password; your index and its data are not touched.
- Drupal Search API Opensolr: open the Search API server of this index and save it again. The module reads the new password when the server is saved.
- WordPress Opensolr Search: under Settings › Opensolr Search, in Use an existing index, pick the same index and click Use this index.
- Your own apps and scripts that query the index directly, and anyone who downloads its backup files.
Until a module is updated, the search on that site fails.