You can not JOIN.

You should design your model to fit to your needs. I mean that you should index 
documents like:

{ 
 product_id: "1111", 
 price: "23.56", 
 stock: "100" 
 category: "iPhone case",  
 manufacturer: "Belkin" 
}


-- 
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr


Le 28 mars 2014 à 08:42:04, Fawad Shah ([email protected]) a écrit:

Hi, 

I have an index named 'product' it has two types named 'type1' and 'type2' 

For example: 
{ 
product_id: "1111", 
price: "23.56", 
stock: "100" 
}

{ 
product_id: "1111", 
category: "iPhone case", 
manufacturer: "Belkin" 
}

I want them to join based on 'product_id' and index them in either new index or 
new type in same 'product' index, so eventually it should look like this. 

{ 
product_id: "1111", 
price: "23.56", 
stock: "100" 
category: "iPhone case", 
manufacturer: "Belkin" 
}

FYI, 
* I have millions of records similar to above, so finally I will be doing the 
similar thing for all. 
* I am using ELK stack. 
* My end goal is to display the combined result of above 2 types in Kibana. 

My question is similar to this but the person reported this question have 2 
separate indexes while I have one index but 2 separate types. 

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/d1a30f9a-ee37-49b4-85ac-1be5d5fe6ca8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/etPan.533535a6.216231b.161d2%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to