lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <>
Subject Re: Changing existing index to use block-join
Date Mon, 20 Jan 2014 15:15:51 GMT
On Mon, Jan 20, 2014 at 6:11 PM, <> wrote:

> Zitat von Mikhail Khludnev <>:
>  On Sat, Jan 18, 2014 at 11:25 PM, <> wrote:
>>  So, my question now: can I change my existing index in just adding a
>>> is_parent and a _root_ field and saving the journal id there like I did
>>> with j-id or do I have to reindex all my documents?
>> Absolutely, to use block-join you need to index nested documents as
>> blocks,
>> as it's described at
>> eg
> Thank you for the clarification.
> But there is no way to add new children without indexing the parent
> document and all existing childs again?
Yes. There is no way to add children incrementally. You need to nuke whole
block and add it with all necessary children.

> So, in the example on github, if I want to add new sizes and colors to an
> existing T-Shirt, I have to reindex the already existing T-Shirt and all
> it's variations again?
Completely reindex t-shirts with all skus.

> I understand that the blocks are created at index time, so I can't change
> an existing index to build blocks just in adding the _root_ field, but I
> don't get why it's not possible to add new children or did I missinterpret
> your statement?

Block join relies on internal Lucene docnums which are defined by the order
in which documents has been indexed.

this might help

> Thanks,
> -Gesh

Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message