I want to make an e-commerce using ElasticSearch as a database in PHP, I
have some experience with dbs in mysql, but I want to use ElasticSearch as
a single database for many reasons.
My question is, can I use the mapping as tables in mysql?
Anyone can show me an example of a mapping shopping cart?
As I am not one hundred percent sure what you mean, I'll try to explain a
bit and will hopefully not be to much offtopic.
First, you can store documents inside of elasticsearch. This means, you do
not have to flatten out your data like in a SQL database. Just be aware of
that, when designing your data model.
Now back to your question: You can define your own mapping, which maps
fields to types, similar to a SQL table definition - but the mapping is not
like the table content, and again, the mapping describes a document, not a
flat data structure. You also configure elasticsearch to ignore fields,
which have not been defined in your mapping, or even to not index documents
which do not adhere to the mapping you expect. See more at
I want to make an e-commerce using Elasticsearch as a database in PHP, I
have some experience with dbs in mysql, but I want to use Elasticsearch as
a single database for many reasons.
My question is, can I use the mapping as tables in mysql?
Anyone can show me an example of a mapping shopping cart?
Em domingo, 6 de outubro de 2013 14h01min45s UTC-3, Alexander Reelsen
escreveu:
Hey,
As I am not one hundred percent sure what you mean, I'll try to explain a
bit and will hopefully not be to much offtopic.
First, you can store documents inside of elasticsearch. This means, you do
not have to flatten out your data like in a SQL database. Just be aware of
that, when designing your data model.
Now back to your question: You can define your own mapping, which maps
fields to types, similar to a SQL table definition - but the mapping is not
like the table content, and again, the mapping describes a document, not a
flat data structure. You also configure elasticsearch to ignore fields,
which have not been defined in your mapping, or even to not index documents
which do not adhere to the mapping you expect. See more at Elasticsearch Platform — Find real-time answers at scale | Elastic
Hope this helps, otherwise feel free to ask more.
--Alex
Not is exactly who i want, but tanks man, this help a lot =D
(Ps: sory my poor English.)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.