Yes that is an option, but the question was specific - is there a way to 
add document to type which does not contain parent, if in mapping there is 
parent for that type, like relational DB null reference.

ceturtdiena, 2014. gada 10. aprīlis 18:47:47 UTC+3, Mandar Rahurkar 
rakstīja:
>
> This should be fine. 
> You can always de-normalize your MySQL scheme in your elasticsearch 
> indexes.
>
>
> On Thu, Apr 10, 2014 at 6:50 AM, Janis Gruzis <[email protected]<javascript:>
> > wrote:
>
>> Hello,
>>
>> im trying to create ElasticSearch mapping in Symfony 2 with help of 
>> FOSElasticaBundle. Well it probably is not relevant that I use Symfony 2, 
>> but relevant is the fact that Im trying to create mapping as similar to 
>> MySQL schema as I can. I stumbled upon situation, where I have foreign key, 
>> which can be null. As far as I know there are multiple ways to implement 
>> foreign key in ElasticSearch, I chose child/parent approach. Can I 
>> implement in this approach the null foreign key which would mean that type 
>> would have defined parent, but in some cases parent wouldnt exist?
>>  
>> -- 
>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/elasticsearch/353046c4-184c-4431-bf60-4c1747470c95%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/353046c4-184c-4431-bf60-4c1747470c95%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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/0deb5aac-08b3-4ae7-b523-37cd602a6ae6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to