Search: AI, Hybrid, Classic

  • Pricing
  • Contact Us
  • Help
    • My Licenses
      • Login
      • Download
      • Why us
      • Contact us
    • Features
      • Google Retail Search
      • Weaviate
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Roadmap
      • Artificial Intelligence
      • Hosting
      • Releases
    • Documentation
    • Support
    • Testimonials
    • Live Demos
    • Blog
Menu
  • Pricing
  • Contact Us
  • Help
    • My Licenses
      • Login
      • Download
      • Why us
      • Contact us
    • Features
      • Google Retail Search
      • Weaviate
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Roadmap
      • Artificial Intelligence
      • Hosting
      • Releases
    • Documentation
    • Support
    • Testimonials
    • Live Demos
    • Blog
Search
Search
Search
Search

Home » Your configuration journey, step by step » Configure your indexes » Create an Amazon AWS OpenSearch index

Create an Amazon AWS OpenSearch index

5872 views 2 May 29, 2022

Setup WPSOLR and Amazon AWS OpenSearch

From WPSOLR 22.2.

This video suppose you already signed up to create an AWS account (Amazon OpenSearch Service).

We will show you how to configure your first OpenSearch index creation with a few clicks.

 

What is Amazon AWS OpenSearch?

It is a service to host open source OpenSearch indexes, managed by Amazon AWS. Rather than installing OpenSearch on your own servers, you get a subscription and let the service manage your indexes on your behalf. No need of manpower, or servers, anymore.

WPSOLR (the plugin) communicates with the OpenSearch  service through the OpenSearch rest api. With a zest of AWS SDK for authentication.

Here is the video tutorial to create and secure (authentication by user/secret) your first OpenSearch cluster:

 

1 – Signup for a free test subscription at AWS OpenSearch

2 – Create a Key/Secret to secure your OpenSearch indexes

2.1 – Navigate to your security credentials

Amazon OpenSearch: credentials menu
Amazon OpenSearch: credentials menu

 

2.2 – Navigate to your policies

Amazon OpenSearch: policies menu
AWS OpenSearch: policies menu

 

2.3 – Click on Create policy button

Image wpsolr-amazon-cluster-button-new-policy.png of Create an Amazon AWS OpenSearch index
Create policy button

 

2.4 – Add the OpenSearch service to the new policy

Image wpsolr-amazon-cluster-new-policy-add-opensearch-service-1024x497.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new policy select OpenSearch service

 

2.5 – Add all OpenSearch service actions (es:*) to the new policy

Image wpsolr-amazon-cluster-new-policy-add-all-actions-1024x497.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new policy select all actions

 

2.6 – Add all domains resources to the new policy

Image wpsolr-amazon-cluster-new-policy-add-resources-all-domains-1024x497.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new policy select all domains

 

2.7 – Review the the new policy

Image wpsolr-amazon-cluster-new-policy-review-1024x497.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new policy review

 

2.8 – New policy has been created

Image wpsolr-amazon-cluster-new-policy-search-1024x497.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new policy created

 

2.9 – Navigate to your users menu. Click on Add user button

Amazon OpenSearch: new user button
New user button

 

2.10 – Give new user a programmatic access: he will carry the access keys used by WPSOLR to access the index

Amazon OpenSearch: new user give programmatic access to use access keys
New user give programmatic access to use access keys

 

2.11 – Attach new policy to new user

Image wpsolr-amazon-cluster-new-user-attach-policy-1024x497.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new user attach our policy

 

2.12 – Download user access keys before saving

Amazon OpenSearch: new user download access keys before saving
New user download access keys before saving

 

2.13 – New user has been created

Amazon OpenSearch: new user has been created
New user has been created

 

3 – Create a new OpenSearch domain (aka “cluster”)

3.1 – Navigate to the OpenSearch service page

Image wpsolr-amazon-cluster-opensearch-service-menu-1024x497.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new Elasticsearch domain menu

 

3.2 – Click on Create a new domain button

Image wpsolr-amazon-cluster-opensearch-new-domain-button-1024x497.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new OpenSearch domain button

 

3.3 – Select the latest OpenSearch version

Image wpsolr-amazon-cluster-elasticsearch-new-domain-opensearch-version-1024x497.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new OpenSearch domain version

 

3.4 – Configure your domain instances

Image wpsolr-amazon-cluster-opensearch-domain-opensearch-instance-1024x530.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new OpenSearch domain instance
  1. Set a number of instance types deployed in your domain
    An instance type is a VM (virtual machine). Each index in your domain will be split in primary shards and replicas (copy of shards). Each shard and each replica will be stored on exactly one instance. How many instance you need depends on: how many and how big indexes are, and how many shards and replicas are there per index.
  2. Select a VM type for each instance in your domain
    The VM type defines how many resources (and of which quality) are given to each instance: RAM, disk, vCPUs.

 

3.5 – Configure your domain instances SSD storage

Image amazon-cluster-opensearch-domain-opensearch-storage.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new OpenSearch domain SSD storage

AWS recommend that you allocate three dedicated master nodes for each production Amazon ES domain.
Fast disks are extremely important for OpenSearch performance. Always choose SSD storage, not magnetic.

 

3.6 – Configure your domain network access: VPC or internet

Choose a VPC access if your WordPress is also hosted on Amazon AWS:

Image amazon-cluster-opensearch-domain-opensearch-vpc-1024x497.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new OpenSearch domain VPC access

Or choose an internet access if your WordPress is not hosted on Amazon AWS:

Image wpsolr-amazon-cluster-opensearch-domain-opensearch-internet.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new OpenSearch domain internet access

 

3.7 – Copy your new user ARN (aka “user ID”)

Image wpsolr-amazon-cluster-opensearch-domain-opensearch-copy-user-arn-1024x530.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new OpenSearch domain copy user ARN

 

3.8 – Select the domain template policy

Amazon OpenSearch: new OpenSearch domain template policy
New OpenSearch domain template policy

 

3.9 – Paste your new user ARN in the domain policy

Image wpsolr-amazon-cluster-opensearch-domain-opensearch-paste-user-arn-1024x530.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: enable fine grained control
  1. Enable fine grain control
  2. Add a master user (it will be used to access the OpenSearch Dashboard too)

 

Image wpsolr-amazon-cluster-opensearch-domain-opensearch-paste-user-arn-2.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new OpenSearch domain paste user ARN
  1. Enable access policy on the domain

 

3.10 – Copy the new domain endpoint to copy in WPSOLR later

Image wpsolr-amazon-cluster-opensearch-domain-opensearch-copy-endpoint-1024x530.png of Create an Amazon AWS OpenSearch index
Amazon OpenSearch: new OpenSearch domain copy endpoint

Wait a few minutes, until the cluster is deployed. Then copy the endpoint that will later be pasted in WPSOLR.

 

3.11 – Summary. We now have: a new domain, with its endpoint, access key/secret, and region

Amazon OpenSearch: new OpenSearch domain no indexes yet
New OpenSearch domain no indexes yet

 

4 – Create a new index in WPSOLR

Here is the video tutorial to create your first Amazon AWS OpenSearch index in WPSOLR:

4.1 – Activate your WPSOLR license

WPSOLR admin: activate a license
WPSOLR admin: activate a license if your site is not dev/test/staging

After buying or trying WPSOLR, check your email for your license code. Enter the code in the activation popup window as show above. Wait a few seconds for WPSOLR servers to return a response, which will unlock the WPSOLR admin screens.

4.2 – Select “OpenSearch”, then “Amazon AWS” hosting

WPSOLR admin: new index menu
WPSOLR admin: new index menu

 

Image wpsolr-admin-new-index-amazon-opensearch-hosting-1024x497.png of Create an Amazon AWS OpenSearch index
WPSOLR Amazon OpenSearch index: select Amazon OpenSearch hosting

 

4.3 – Paste the Amazon domain Endpoint url

WPSOLR Amazon index: paste Amazon domain endpoint url
WPSOLR Amazon index: paste Amazon domain endpoint url

 

4.4 – Paste the AWS user access keys. The user is attached to the domain policy.

WPSOLR Amazon index: paste Amazon domain's policy user access keys
WPSOLR Amazon index: paste Amazon domain’s policy user access keys

Do not forget to enter your AWS access control key and secret, as shown in the above screen.

4.5 – Paste the domain region

Copy the domain’s region from your Amazon AWS console:

Amazon OpenSearch: new OpenSearch domain region
New OpenSearch domain region

 

Then copy the region to WPSOLR’s index form:

WPSOLR Amazon index: paste Amazon domain's region
WPSOLR Amazon index: paste Amazon domain’s region

 

4.6 – Index is created !

WPSOLR Amazon index: index created !
WPSOLR Amazon index: index created !

Click on the button “Check the index status”, which calls the OpenSearch create index api. Wait for active shards acknowledged true (a few seconds at most). The newly created index is now ready to accept your documents.

4.7 – Send your data to the index

WPSOLR Amazon index: index indexed
WPSOLR Amazon index: index indexed

Select your index (you can have more than one), click on the “Index” button. Wait while your documents are sent in batch to the AWS index in real time.

4.8 – Perform a few searches

WPSOLR Amazon index: perform a search with facets
WPSOLR Amazon index: perform a search with facets

 

Was this helpful?

2 Yes  2 No
Related Articles
  • Hybrid search
  • Question Answering
  • Cohere
  • OpenAI
  • HuggingFace
  • CLIP

Didn't find your answer? Contact Us

Previously
Create an Elastic Elasticsearch index
Up Next
Create an Algolia index
Expand All Collapse All
  • What is it WPSOLR ?
    • The standard WordPress SQL search
    • The WPSOLR search with Elasticsearch, Apache Solr, or Algolia
  • Your configuration journey, step by step
    • Install Apache Solr
    • Hosted Apache Solr and SolrCloud Services
    • Install Elasticsearch
    • Elasticsearch Hosting
    • Configure your indexes
      • Create a Google Retail search index
      • Create a Weaviate index
        • Transformers
        • CLIP
        • HuggingFace
        • OpenAI
        • Cohere
        • Question Answering
        • Hybrid search
      • Generate a test Apache Solr index
      • Generate a test Elasticsearch index
      • Create an Apache Solr index
      • Create a SearchStax SolrCloud index
      • Create an Elastic Elasticsearch index
      • Create an Amazon AWS OpenSearch index
      • Create an Algolia index
      • Create an Elasticsearch index
      • Create an Opensolr Solr index
      • Create a Qbox Elasticsearch index
      • Create an ElasticPress Elasticsearch index
      • Create an Aiven Elasticsearch or OpenSearch index
      • Create a Bonsai Elasticsearch index
      • Create an Amazon AWS Elasticsearch index
      • Create an ObjectRocket Elasticsearch index
      • Create a Cloudways Elasticsearch index
      • Create an Alibaba Cloud Elasticsearch index
      • Create a Compose Elasticsearch index
      • Connect to an Apache Solr index
      • Connect to an Elasticsearch index
    • Add-ons
      • bbPress add-on
      • YITH WooCommerce Ajax Search add-on
      • SEO add-ons
        • Yoast SEO add-on
        • All in One SEO add-on
      • Listable add-on
      • ACF add-on
      • Advanced Scoring add-on
      • Cron Scheduling add-on
      • Theme add-on
        • Filters layouts
          • Radiobox & Checkbox Layout
          • Numeric Range Layout
          • Colour Picker Layout
          • Range Slider Layout
        • Add Ajax to the current Theme
        • Collapse taxonomy hierarchies
        • Custom Facets CSS
      • WPML add-on
      • Premium add-on
        • Manage more than one Elasticsearch or Solr index
      • PDF Embedder add-on
      • Geolocation add-on
      • AI Natural Language APIs add-on
        • Amazon Comprehend
        • Google Natural Language
        • Aylien Text Analysis
        • MeaningCloud
        • Qwam Text Analytics
      • Toolset Types add-on
      • AI Image and OCR APIs add-on
        • Google Vision
        • Amazon Rekognition
      • Embed Any Document add-on
      • MyListing add-on
      • Polylang add-on
      • WooCommerce add-on
      • Cross-domain search add-on
      • Directory+ add-on
      • Toolset Views add-on
      • Listify add-on
      • Jobify add-on
      • Query Monitor add-on
  • Quick start
Login
Support
Privacy policy
  • Terms and Conditions
  • © 2020 wpsolr.com. All Rights Reserved.
Youtube
Roadmap