Hello, i am new to elasticsearch and i need some help/hints for creatine my
model. For my relational database ( mysql ) is have the following situation:
Table: Subcategories
Columns: Name, Company
Every subcategory has a name and has a 1:n company relation.
The next is:
Table: Company
Columns: Name, Subcategory
Every company has a name and has a 1:n subcategory relation.
How can i modelling this for elasticsearch. I have a serach form with the
following situation: The user can serach for subcategories, but only one
should shown with have a company assigned. Then you select a subcategory
and omitted the subcategory id. Then only companies should shown which are
assigned to the subcategory.
many thanks to your answer.
Could you give me a little example how to add/remove a single child to a
parent object, maybe.
I would like to do this with the elasticsearch php module. Is this possible?
Regards Stefan
Am Dienstag, 1. April 2014 16:45:16 UTC+2 schrieb Binh Ly:
hm, a little example would be nice. I dont get it to run. Thanks-
Am Mittwoch, 2. April 2014 12:11:04 UTC+2 schrieb Stefan Kruse:
Hello,
many thanks to your answer.
Could you give me a little example how to add/remove a single child to a
parent object, maybe.
I would like to do this with the elasticsearch php module. Is this
possible?
Regards Stefan
Am Dienstag, 1. April 2014 16:45:16 UTC+2 schrieb Binh Ly:
thanks for answer, That helped me a lot. But how can i use the same queries
with the PHP API? I need to add the parent query, but i dont find anything
about this in the docu.
Thanks for helping and sharing your time.
Regards Stefan
Am Freitag, 4. April 2014 22:27:51 UTC+2 schrieb Binh Ly:
So assuming you want parent/child (assuming you already set up the mapping
correctly), to add a child to a parent:
Maybe a short answer how i can use it with the php api? 1000 times thank
you, Stefan
Am Freitag, 11. April 2014 10:18:07 UTC+2 schrieb Stefan Kruse:
Hi Binh Ly,
thanks for answer, That helped me a lot. But how can i use the same
queries with the PHP API? I need to add the parent query, but i dont find
anything about this in the docu.
Thanks for helping and sharing your time.
Regards Stefan
Am Freitag, 4. April 2014 22:27:51 UTC+2 schrieb Binh Ly:
So assuming you want parent/child (assuming you already set up the
mapping correctly), to add a child to a parent:
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.