Could somebody please give schema example for creating child document?
On 23/11/15 12:57, Novin wrote:
When I query using solr admin page. I can see the parent document
there in results, but now child document.
On 23/11/15 12:24, Alexandre Rafalovitch wrote:
Do you get a parent doc? If not, maybe you forgot to commit the whole
lot.
On 23 Nov 2015 6:42 am, "Novin" <no...@temetra.com> wrote:
Hi,
When I query q=*:* I can't get child documents back, Below is
configuration I am using for child Document to index in solr.
Am I missing something?
note: child document are using dynamic fields.
SolrInputDocument childDoc = new SolrInputDocument();
childDoc.addfield("index_l", 20000);
childDoc.addfield("datetime_dt", DateTime.now().toIsoDateTime());
parentDoc. .addChildDocument(childDoc);
schema.xml
<field name="_root_" type="string" indexed="true" stored="true"/>
solrconfig.xml
<cache name="perSegFilter"
class="solr.search.LRUCache"
size="10"
initialSize="0"
autowarmCount="10" />
If needed more info I can provide that either.
Cheeers,
Novin