Using ElasticSearch how db for a e-commerce


(Tiago Rodrigues) #1

Hi guys,

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?

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Alexander Reelsen) #2

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
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping.html

Hope this helps, otherwise feel free to ask more.

--Alex

On Fri, Oct 4, 2013 at 9:54 PM, Tiago Rodrigues tiago_tk21@hotmail.comwrote:

Hi guys,

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?

Thanks

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Tiago Rodrigues) #3

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
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping.html

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.)

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4