Re: block join - search together at parent and childern

2017-03-23 Thread Jan Nekuda
Hi Mikhail, thank you very much - it's exactly what I need. When I have tried it first a had problem with spaces and it seems that it doesn't work, but now it works great. Thanks and have a nice day Jan 2017-03-21 10:11 GMT+01:00 Mikhail Khludnev : > Hello Jan, > If I get you

Re: block join - search together at parent and childern

2017-03-21 Thread Mikhail Khludnev
Hello Jan, If I get you right, you need to find every word either in parent or child level, hence: q=+({!edismax qf=$pflds v=$w1} {!parent ..}{!edismax qf=$cflds v=$w1}) +({!edismax qf=$pflds v=$w1} {!parent ..}{!edismax qf=$cflds v=$w1})...=foo=bar note that spaces and + matter much. This yields

Re: block join - search together at parent and childern

2017-03-19 Thread Damien Kamerman
It can work with multiple searches. One search would return A docs, 2nd search would return B docs etc. Alternatively, use solr streaming expressions which have proper joins. On 19 March 2017 at 19:58, Jan Nekuda wrote: > Hi Michael, > thank you for fast answer - I have

Re: block join - search together at parent and childern

2017-03-19 Thread Jan Nekuda
Hi Michael, thank you for fast answer - I have tried it, but it's not exactly what I need. I hope that I understood it good - the problem is that if I will write foo bar and foo bar is not found in root entity then it returns nothing even if any field in children contains foo bar. I need to write

Re: block join - search together at parent and childern

2017-03-16 Thread Mikhail Khludnev
Hello Jan, What if you combine child and parent dismaxes like below q={!edismax qf=$parentfields}foo bar {!parent ..}{!dismax qf=$childfields v=$childclauses}=foo bar +type:child=...& parentfields=... On Thu, Mar 16, 2017 at 10:54 PM, Jan Nekuda wrote: > Hello Mikhail, >

Re: block join - search together at parent and childern

2017-03-16 Thread Jan Nekuda
Hello Mikhail, thanks for fast answer. The problem is, that I want to have the dismax on child and parent together - to have the filter evaluated together. I need to have documents: path: car type:car color:red first_country: CZ name:seat path: car\engine type:engine power:63KW

Re: block join - search together at parent and childern

2017-03-16 Thread Mikhail Khludnev
Hello, It's hard to get into the problem. but you probably want to have dismax on child level: q={!parent ...}{!edismax qf='childF1 childF2' v=$chq}=foo bar It's usually broken because child query might match parents which is not allowed. Thus, it's probably can solved by adding +type:child into

Fwd: block join - search together at parent and childern

2017-03-16 Thread Jan Nekuda
Hi, I have a question for which I wasn't able to find a good solution. I have this structure of documents A |\ | \ B \ \ C \ \ \ D Document type A has fields id_number, date_from, date_to Document type C has fields first_name, surname, birthdate