(Duplicate post as the xml is not formatted well in nabble, so posting
directly to the list)

Hi, I have question regarding nested documents.

My document looks like below,

 <doc>
        <field name="id">1234</field>
        <field name="pk_id">xger</field>
        <field name="title_t"><![CDATA[title]]></field>
        <field name="description_t"><![CDATA[this is a test]]></field>
        <field name="specCount_i">0</field>
        <field name="viewCount_i">0</field>
       <field name="lastModifiedDate_dt">2015-06-15T13:29:07Z</field>
        <field name="vert_id_s">ege</field>
        <field name="vert_name_s">Duper</field>
        <field name="vert_url_s">http://www.domain.com</field>
        <field name="sere_s">zoome</field>
        <field name="type">parent</field>
        <doc>
            <field name="id">1234-images</field>
            <field name="image_uri_s">http://somedomain.com/some.jpg</field>
            <field name="image_flatten_s">1:1</field>
        </doc>
        <doc>
            <field name="id">1234-platform-ios</field>
            <field name="platform_s">ios</field>
            <field name="downloadU_s">https://somedomain.com</field>
            <field name="link_s">somelink</field>
            <field name="authRequired_s">false</field>
            <field name="startDate_s">2015-03-23T10:58:00Z</field>
            <field name="endDate_s">9999-12-30T19:00:00Z</field>
        </doc>
        <doc>
            <field name="id">1234-platform-android</field>

            <field name="platform_s">android</field>
            <field name="downloadU_s">somedomain.com</field>
            <field name="link_s">somelink</field>
            <field name="authRequired_s">false</field>
            <field name="startDate_s">2015-03-23T10:58:00Z</field>
            <field name="endDate_s">9999-12-30T19:00:00Z</field>
        </doc>
    </doc>

Right now I can query like this

http://localhost:8983/solr/demo/select?q=
{!parent%20which=%27type:parent%27}&fl=*,[child%20parentFilter=type:parent%20childFilter=image_uri_s:*]&indent=true

and get the parent and child document with matching criteria (just parent
and image child document).

*But, I want to get all other children* (1234-platform-ios and
1234-platform-andriod) even if i query based on image_uri_s (1234-images)
although they are other children which are part of the parent document.

Is it possible ?

Appreciate your help !

Thanks,
Ramesh

Reply via email to