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 "scott.chu" <sc...@udngroup.com> on 2016/06/22 08:17:52 UTC
Re(2): Do we really need to build all existing index data again
afterchanging schema? [scottchu]
What if I add new field to schema, do I have to rebuild existing index data? In this article:
Sitecore Blogger: Boost newer documents in Sitecore 7 and Solr 4
http://www.sitecoreblogger.com/2014/09/publication-date-boosting-in-sitecore-7.html
, it add a new field "_val" to schema and in the paragraph "Update Solr Schema", the author writes "you will either need to re-load this Solr Core or restart Solr so it picks up the new Schema.xml.". He never mention "rebuild existing index data". It sounds to me there's no need to "reindex" data.
scott.chu,scott.chu@udngroup.com
2016/6/22 (週三)
----- Original Message -----
From: Alexandre Rafalovitch
To: solr-user
CC:
Date: 2016/6/22 (週三) 14:52
Subject: Re: Do we really need to build all existing index data again afterchanging schema? [scottchu]
Well, if you are changing query analyzer chain, you can get away
without reindexing.
But if you change index analyzer chain, then your older tokens are
stored in a different ways. Even if Solr does not complain, it will
not match and may lead to very obscure issues.
And if you change the type radically (String to text or to integer), I
am quite sure Solr will complain a lot.
Regards,
Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/
On 22 June 2016 at 16:49, scott.chu <sc...@udngroup.com> wrote:
>
> According to https://wiki.apache.org/solr/HowToReindex, If I understand right, once we change schema after index built, we have to rebuild all index again. Is there really no other way to keep existing index data and still apply new schema?
>
> scott.chu,scott.chu@udngroup.com
> 2016/6/22 (週三)
-----
未在此訊息中找到病毒。
已透過 AVG 檢查 - www.avg.com
版本: 2015.0.6201 / 病毒庫: 4604/12468 - 發佈日期: 06/21/16
Re: Re(2): Do we really need to build all existing index data again
afterchanging schema? [scottchu]
Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Well, my reading of that page is that they are creating a *fake*
_val_ field which bypasses Sitecore's logic to allow it to use Solr's
_val_ query syntax without actually touching that fake _val_ field.
Since you don't actually populate that field, nor do you actually
search against it, you do not need to reindex your data. It is only
there to push Sitecore in the desired direction.
It is up to you whether your original question actually matches the
situation described in that article.
Regards,
Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/
On 22 June 2016 at 18:17, scott.chu <sc...@udngroup.com> wrote:
>
> What if I add new field to schema, do I have to rebuild existing index data? In this article:
>
> Sitecore Blogger: Boost newer documents in Sitecore 7 and Solr 4
> http://www.sitecoreblogger.com/2014/09/publication-date-boosting-in-sitecore-7.html
>
> , it add a new field "_val" to schema and in the paragraph "Update Solr Schema", the author writes "you will either need to re-load this Solr Core or restart Solr so it picks up the new Schema.xml.". He never mention "rebuild existing index data". It sounds to me there's no need to "reindex" data.
>
> scott.chu,scott.chu@udngroup.com
> 2016/6/22 (週三)
> ----- Original Message -----
> From: Alexandre Rafalovitch
> To: solr-user
> CC:
> Date: 2016/6/22 (週三) 14:52
> Subject: Re: Do we really need to build all existing index data again afterchanging schema? [scottchu]
>
>
> Well, if you are changing query analyzer chain, you can get away
> without reindexing.
>
> But if you change index analyzer chain, then your older tokens are
> stored in a different ways. Even if Solr does not complain, it will
> not match and may lead to very obscure issues.
>
> And if you change the type radically (String to text or to integer), I
> am quite sure Solr will complain a lot.
>
>
> Regards,
> Alex.
> ----
> Newsletter and resources for Solr beginners and intermediates:
> http://www.solr-start.com/
>
>
> On 22 June 2016 at 16:49, scott.chu <sc...@udngroup.com> wrote:
>>
>> According to https://wiki.apache.org/solr/HowToReindex, If I understand right, once we change schema after index built, we have to rebuild all index again. Is there really no other way to keep existing index data and still apply new schema?
>>
>> scott.chu,scott.chu@udngroup.com
>> 2016/6/22 (週三)
>
>
> -----
> 未在此訊息中找到病毒。
> 已透過 AVG 檢查 - www.avg.com
> 版本: 2015.0.6201 / 病毒庫: 4604/12468 - 發佈日期: 06/21/16