You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Novin <no...@temetra.com> on 2015/11/23 12:42:46 UTC
Solr 5.2 child documents
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
Re: Solr 5.2 child documents
Posted by Novin <no...@temetra.com>.
Thanks Mikhali.
On 23/11/15 17:44, Mikhail Khludnev wrote:
> Novin,
>
> As it's stated here http://yonik.com/solr-nested-objects/ there is no
> requirements for schema. Perhaps
> http://blog.griddynamics.com/2013/09/solr-block-join-support.html might be
> useful too.
>
> I suppose LogUpdateProcessor messages might answer about the root cause of
> your problem.
>
> On Mon, Nov 23, 2015 at 4:45 PM, Novin <no...@temetra.com> wrote:
>
>> 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
>>>>>
>>>>>
>>>>>
>
Re: Solr 5.2 child documents
Posted by Mikhail Khludnev <mk...@griddynamics.com>.
Novin,
As it's stated here http://yonik.com/solr-nested-objects/ there is no
requirements for schema. Perhaps
http://blog.griddynamics.com/2013/09/solr-block-join-support.html might be
useful too.
I suppose LogUpdateProcessor messages might answer about the root cause of
your problem.
On Mon, Nov 23, 2015 at 4:45 PM, Novin <no...@temetra.com> wrote:
> 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
>>>>
>>>>
>>>>
>>
>
--
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics
<http://www.griddynamics.com>
<mk...@griddynamics.com>
Re: Solr 5.2 child documents
Posted by Novin <no...@temetra.com>.
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
>>>
>>>
>
Re: Solr 5.2 child documents
Posted by Novin <no...@temetra.com>.
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
>>
>>
Re: Solr 5.2 child documents
Posted by Alexandre Rafalovitch <ar...@gmail.com>.
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
>
>
Re: Solr 5.2 child documents
Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: Solr 5.2 child documents
: References: <A0...@elmar.nl>
: <CA...@mail.gmail.com>
: <A9...@elmar.nl>
: In-Reply-To: <A9...@elmar.nl>
https://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists
When starting a new discussion on a mailing list, please do not reply to
an existing message, instead start a fresh email. Even if you change the
subject line of your email, other mail headers still track which thread
you replied to and your question is "hidden" in that thread and gets less
attention. It makes following discussions in the mailing list archives
particularly difficult.
-Hoss
http://www.lucidworks.com/