Dear Community,




we are using the /export handler with Solr 7.7 to fetch a large number of
documents from Solr.

Recently we have extended our schema with Child Documents and now we are
wondering if/how it is possible to export parent documents together with
their corresponding Child Documents.

When using the /select handler this can be done with the
ChildDocTransformer (
https://lucene.apache.org/solr/guide/7_7/transforming-result-documents.html#child-childdoctransformerfactory
).

However, when using the export handle we get an error from Solr.



Our request:

{
  "query" : "*:*",
  "sort" : "id asc",
  "fields" : "id,[child parentFilter='-child_type:* *:*']"
}



The response from Solr:

{

  "responseHeader":{"status":400},

  "response":{

    "numFound":0,

    "docs":[{"EXCEPTION":"org.apache.solr.common.SolrException:
undefined field: \"[child parentFilter=\"-child_type:* *:*\"]\""}]}

}



Is it possible to get parent documents together with their corresponding
child documents?

If it is possible: What is the correct query?

If it is not possible: Can Streaming Expressions be used together with
child documents? As far as I understand they internally use the export
handler.



Thanks in advance for your help



Ludger


------------------------------

*„Beste Arbeitgeber ITK 2020“ - 1. Platz für QAware*
ausgezeichnet von Great Place to Work
<https://www.qaware.de/news/great-place-to-work-deutschlands-beste-arbeitgeber-2020/>
------------------------------

Ludger Steens
Softwarearchitekt

QAware GmbH
Aschauer Straße 32
81549 München, Germany
Mobil +49 175 7973969
ludger.ste...@qaware.de
www.qaware.de
------------------------------

Geschäftsführer: Christian Kamm, Johannes Weigend, Dr. Josef Adersberger
Registergericht: München
Handelsregisternummer: HRB 163761

Reply via email to