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 Apache Solr index

Create an Apache Solr index

3834 views 3 March 9, 2017 Updated on July 13, 2019

WPSOLR >= 19.1

With the release of WPSOLR 19.1, this guide is no use anymore. You can directly go to the next step.

The creation of a Solr index now takes:

  • 10 seconds with SolrCloud: fully automatic process from the plugin admin.
    No need anymore to download WPSOLR config files, upload them as config sets to zookeeper, or to create manually a collection. This is done in one click in the plugin UI.
  • 1 minute with Apache Solr: semi-automatic process from the plugin admin.
    The plugin will give you the system commands to execute on your Solr server filesystem to download WPSOLR config files, copy them as config sets. No need to create the core index, the plugin will also take care of it.

Just compare to the tedious manual procedures described below.

WPSOLR < 19.1

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

This procedure was last tested on Apache Solr 6.6.0

(Solr 6.5 may not display suggestions, due to a Solr bug. See ticket).

We will suppose here that you already installed your Apache Solr server 5.x.x / 6.x.x, and downloaded our Apache Solr configuration files specially designed for WPSOLR.

Create a blank index named “new-index”

Use a command like:

solr-6.x.x/bin/solr create -c new-index
Command line to create a solr index
Command line to create a solr index

 

Download Apache Solr configuration files 

Download link is here.

Download Apache Solr 5/6 configuration files to create your index
Download Apache Solr 5/6 configuration files to create your index

 

Unzip Apache Solr configuration files 

 

Copy Apache Solr configuration files to your index /conf directory 

cp elevate.xml schema.xml solrconfig.xml stopwords.txt solr-6.1.0/server/solr/new-index/conf/
Copy the WPSOLR Solr configuration files to the new index /conf directory
Copy the WPSOLR Solr configuration files to the new index /conf directory

Edit your solrconfig.xml file to change the lucene version 

Change the lucene version to your lucene version.

Change solrconfig.xml lucene version with your current version
Change solrconfig.xml lucene version with your current version

 

Reload your index or restart Apache Solr 

This is necessary to get your index start using the configuration files.

Reload your Solr index after updating it's configuration files
Reload your Solr index after updating it’s configuration files

 

Errors and warnings during the index reload 

Exception in reloading spell check index for spellchecker: suggest

This error appears when the index is reloaded for the first time, then disappears. Solr is trying to load the spellcheck index data file, before it’s created.

 

default search field in schema is text. WARNING: Deprecated,&#8203; please use 'df' on request instead.

The old syntax is kept in schema.xml, until it’s no more accepted by Apache Solr.

 

query parser default operator is OR. WARNING: Deprecated, please use 'q.op' on request instead.

The old syntax is kept in schema.xml, until it’s no more accepted by Apache Solr.

Was this helpful?

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

Didn't find your answer? Contact Us

Previously
Generate a test Elasticsearch index
Up Next
Create a SearchStax SolrCloud 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