Search: AI, Hybrid, Classic

  • Pricing
  • 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
  • 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 » Connect to an Elasticsearch index

Connect to an Elasticsearch index

632 views 0 March 13, 2017 Updated on July 13, 2019

To create, setup, and connect to your Elastisearch index, or just connect to your existing index, you will setup a connection to the index as seen in the following screen.

First step to connect an index
First step to connect an index

Connect to your new or existing Elasticsearch index

Click on the button “”Connect to your Elasticsearch / Apache Solr”, to open the connection setup parameters.

Details to connect an Elasticsearch index
Details to connect an Elasticsearch index

Here are the steps:

  1. Open the Elasticsearch index parameters
  2. Select the type of index you’re connecting too (“Elasticsearch” here)
  3. Give a name to your index. It’s just for wpsolr, it does not need to be related to your index real name. Like “dev index”, “stage site.com”, “prod do not delete”
  4. Real name of your index in your Elasticsearch server (no whitespace, no special characters).
  5. Choose if your index is protected with https or not (it should!)
  6. This is the host name of your Elasticsearch server. Like localhost, www.mysite.com, subsite.mysite.com
  7. The port of your Elasticsearch  server. 9200 is the default, or 443 with https.
  8. If your Elasticsearch uses Basic HTTP  authentication (it should!), this is the “user”
  9. If your Elasticsearch  uses Basic HTTP  authentication (it should!), this is the “Password”
  10. This button verifies your connection (by pinging the index) and saves it if it’s fine. A green icon will be shown briefly if the connection is fine. Else, error messages in red appear.


Remove or update your Elasticsearch index connection

Update or delete an Elasticsearch connection
Update or delete an Elasticsearch connection

After creating your connection, you can either:

  1. Create another one
  2. Change it’s parameters or check that it is still alive
  3. Remove the connection from wpsolr. It does not delete the index from Elasticsearch: it just removes the connection from wpsolr’s connections list.

Common error messages

No handler for type [keyword] declared on field [id]
Your Elasticsearch version is 2.x. WPSOLR requires a 5.x version, with the mapper attachment plugin.

Couldn't resolve host
Your host name does not exist, probably because of a typing mistake. Ensure there is not http, not :, not // in the host name.

no such index [index: bad-request]
The index name contains unsupported characters, like white spaces. Or the index is in bad shape: verify the error messages in your Elasticsearch logs.

Couldn't connect to host, Elasticsearch down?
The Elastisearch server is down: verify that you can access it’s admin UI with this port. Or your WordPress hosting company blocks all outgoing ports, but 80 and 443: ensure your Elasticsearch uses one of those ports.

Was this helpful?

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

Didn't find your answer? Contact Us

Previously
Connect to an Apache Solr index
Up Next
Add-ons
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