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 » Connect to an Apache Solr index

Connect to an Apache Solr index

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

To create, setup, and connect to your Solr/SolrCloud index, or just connect to your existing index, you will setup a connection to the index as seen in the following screens.

 

 

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

Here, you have two choices:

  • Use a temporary Apache Solr index, as described before.
  • Connect to your existing apache Solr index, as shown below.

 

Connect to your existing apache Solr index

If your index is hosted at Gotosolr, please follow the dedicated tutorial.

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

Details to connect an apache solr index
Details to connect an apache solr index

Here are the steps:

  1. Open the Apache Solr index parameters
  2. Select the type of index you’re connecting too (“Apache Solr” 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. Choose if your index is protected with https or not (it should!)
  5. This is the host name of your Apache Solr server. Like localhost, www.mysite.com, subsite.mysite.com
  6. The port of your Apache Solr server. 8983 is the default, or 443 with https.
  7. This is the “path”. It’s made like this: /solr/yourindexname. If your index name is “test”, it will be “/solr/test”
  8. If your Apache Solr uses Basic HTTP  authentication (it should!), this is the “user”
  9. If your Apache Solr 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 Apache Solr index connection

Update or delete an Apache Solr connection
Update or delete an Apache Solr 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 Apache Solr: it just removes the connection from wpsolr’s connections list.

 

Common error messages

Solr HTTP error: HTTP request failed, Could not resolve host: XXXX
Your host name does not exist, probably because of a typing mistake. Ensure there is not http, not :, not // in the host name.

We could not join your Solr server. Your Solr path could be malformed, or your Solr server down (Solr code 404)
Solr HTTP error: OK (404)Error 404 Not Found
HTTP ERROR 404
Problem accessing /solr/test/admin/ping. Reason:
Not Found

Your path is wrong: it should start with /solr/ followed by the index name. Or the index does not exist: you have to create it first. Or the index is in bad shape: verify the error messages in your Solr admin UI logs menu.

We could not connect to your Solr server. It's probably because the port is blocked. Please try another port, for instance 443, or contact your hosting provider/network administrator to unblock your port.
Solr HTTP error: HTTP request failed, Failed to connect to localhost port 8983: Connection refused

The Apache Solr server is down: verify that you can access it’s admin UI. Or your WordPress hosting company blocks all outgoing ports, but 80 and 443: ensure your apache Solr uses one of those ports.

Was this helpful?

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

Didn't find your answer? Contact Us

Previously
Create a Compose Elasticsearch index
Up Next
Connect to an Elasticsearch 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