1.

Does ElasticSearch have a schema?

Answer»

Yes, it is possible for ELASTICSEARCH to have a schema. The schema is a description of one or more fields in a document that DESCRIBE what type of document it is and how different fields of a document are to be HANDLED. In Elasticsearch, a schema describes the fields in JSON documents, their data types, and how they should be indexed in the Lucene indexes. As such, we CALL this schema a "mapping" in Elasticsearch.ch.

But Elasticsearch can also be schema-less, MEANING that documents can be indexed without the need to provide a schema explicitly.  If a mapping isn't specified, Elasticsearch will by default generate one when newly added fields are detected during indexing.



Discussion

No Comment Found