Hello,
This is my first post here and I'm quite new to ES.
After doing A LOT of digging I still couldn't find a good way to implement
what I need.
Let's say I have these documents:
curl -XGET http://localhost:9200/test/customers/1
http://localhost:9200/test/customers/1/_source?pretty=true{"_index":
"test","_type": "customers","_id": "1","_version": 1,"exists": true,
"_source": {"Name": "MyCust1"}}
curl -XGET http://localhost:9200/test/invoices/1
{"_index": "test","_type": "invoices","_id": "1","_version": 1,"exists":
true,"_source": {"custId": "1"}}
(these are examples of course)
As you can see, the invoice document has a field (named: custId, with value
of 1) pointing to a custoer document with _id = 1.
Of course customer in not a child document of invoices and it'll be used as
a reference in other documents as well.
How can I query the invoices with a certain customer name?
What is the mapping I need to do?
Is it all possible?
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.