Amazon CloudSearch is a managed service in the AWS Cloud that makes it simple and cost-effective to set up, manage, and scale a search solution for your website or application.
Create the Search Domain
Create the Search User
- Login to your AWS Console
- Create a new CloudSearch domain.
- Name your domain, choose the desired instance type and click Continue.
- At the Configure Index step, select Manual Configuration. Click Continue.
- At the Review Index Configuration step, leave everything empty and click Continue.
- Enter an Access Policy and Continue. It's recommended to limit by the IP of the server onto which Wiki.js is installed.
- Finally create the domain.
Configure in Wiki.js
- In IAM, click on Users.
- Click on Add User.
- Enter a User name (e.g. wikisearch) and make sure Programmatic access is enabled. Click on Next: Permissions.
- Choose Attach existing policies directly and search for CloudSearchFullAccess and select it.
- Continue through the next steps to create the user.
- Make note of the Access Key ID and the Secret Access Key.
- In the Wiki.js administration area, click on Search Engine in the sidebar.
- Select AWS CloudSearch as the search engine.
- Enter the Search Domain of the AWS CloudSearch domain you just created. This is the name you entered when creating the new domain.
- Enter the Document Endpoint, found in the dashboard of the search domain in the AWS console.
- Select the Region where the search domain was created.
- Enter the Access Key ID and Secret Access Key generated earlier.
- Select the language to use for the Analysis Scheme.
- Click the Apply button to save and initialize the search engine. An index will be created automatically.
Note that if you already have content in your wiki, you must click on Rebuild Index afterwards to import all your existing content into the search engine. Any change (new, edit, delete page) will be handled automatically from this point forward.