Hello,

Please check warning box titled Using which
https://lucene.apache.org/solr/guide/8_5/other-parsers.html#block-join-parent-query-parser

On Wed, Jun 24, 2020 at 10:01 AM Tor-Magne Stien Hagen <t...@dips.no> wrote:

> Hi,
>
> I have indexed the following nested document in Solr:
>
> {
>     "id": "1",
>     "class": "composition",
>     "children": [
>         {
>             "id": "2",
>             "class": "section",
>             "children": [
>                 {
>                     "id": "3",
>                     "class": "observation"
>                 }
>             ]
>         },
>         {
>             "id": "4",
>             "class": "section",
>             "children": [
>                 {
>                     "id": "5",
>                     "class": "instruction"
>                 }
>             ]
>         }
>     ]
> }
>
> Given the following query:
>
> {!parent which='id:4'}id:3
>
> I expect the result to be empty as document 3 is not a child document of
> document 4.
>
> To reproduce, use the docker container provided here:
> https://github.com/tormsh/Solr-Example
>
> Have I misunderstood something regarding the Block Join Parent Query
> Parser?
>
> Tor-Magne Stien Hagen
>
>

-- 
Sincerely yours
Mikhail Khludnev

Reply via email to