What is an Elasticsearch / Apache Solr index ? For dummies

744 views September 27, 2016 July 13, 2019 admin 1

Image psolr-solr-index-database-mapping.png of What is an Elasticsearch / Apache Solr index ? For dummies

wpsolr Elasticsearch / Apache solr index database mapping

An Elasticsearch / Apache Solr index is the equivalent of a SQL table.

An Elasticsearch or Solr server (aka Solr instance, aka Solr engine) can maintain several indexes.

Elasticsearch

Each index contains types, defined with a mapping. The index type mapping is equivalent to a SQL table schema definition.

Apache Solr

Each index is defined by a schema.xml file (it’s not mandatory in Solr 5/6, but recommended in production), and a solrconfig.xml file. The index schema is equivalent to a SQL table schema definition.

 

An index contains several documents, equivalent to SQL table rows. Each document contains fields, equivalent to SQL table columns.

When an index document is inserted/updated/deleted, we say it is “indexed”.

To retrieve documents from an index, Elasticsearch (json) / Apache Solr (xml, json) provide an http API, with a proprietary syntax.

Was this helpful?

Leave A Comment
*
*

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Join Our weekly Newsletter

Receive our latest news once a week, each Thursday afternoon.
Your email is kept 100% private, and you will not receive other stuff in your mailbox.

We keep your data private and share your data only with third parties that make this service possible. Read our Privacy Policy.