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 saurabh tewari <sa...@gmail.com> on 2015/08/10 15:07:47 UTC
Changing solr.Date to solr.TrieDate
Hi,
I recently started to move my solr index from 4.8 to 5.2 via replication
from 4.8 master to 5.2 slave. I replaced all the primitive fieldtypes to
Trie-fields, since the original ones are removed from 5.2 . Replication
went successful, but when I fired a query on slave, it shows a class-cast
exception in solr.DateField.I understand that my documents are still using
old fieldtypes and my current schema doesn't support that. Is there any way
I can move my existing index to 5.2?
Re: Changing solr.Date to solr.TrieDate
Posted by Erick Erickson <er...@gmail.com>.
bq: I replaced all the primitive fieldtypes to Trie-fields,
since the original ones are removed from 5.2 .
You have to explain this better. What were "the original ones"?
pdate? If so, you need to re-index from scratch after changing from
pdate to tdate.
Simply changing the definitions in the schema then replicating the
index simply will
not work.
pdate has been deprecated since the 3.x days and was only in 4.x for
back-compat reasons.
Best,
Erick
On Mon, Aug 10, 2015 at 7:43 AM, davidphilip cherian
<da...@gmail.com> wrote:
> Hi Saurabh,
>
> You could probably try command=fetchindex functionality.
> http://node:port
> /solr/<core_name>/replication?command=fetchindex&masterUrl=http://node:port
> /solr/<core_name>
> Master url should be the existing index solr instance url.
>
>
> On Mon, Aug 10, 2015 at 6:37 PM, saurabh tewari <sa...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I recently started to move my solr index from 4.8 to 5.2 via replication
>> from 4.8 master to 5.2 slave. I replaced all the primitive fieldtypes to
>> Trie-fields, since the original ones are removed from 5.2 . Replication
>> went successful, but when I fired a query on slave, it shows a class-cast
>> exception in solr.DateField.I understand that my documents are still using
>> old fieldtypes and my current schema doesn't support that. Is there any way
>> I can move my existing index to 5.2?
>>
Re: Changing solr.Date to solr.TrieDate
Posted by davidphilip cherian <da...@gmail.com>.
Hi Saurabh,
You could probably try command=fetchindex functionality.
http://node:port
/solr/<core_name>/replication?command=fetchindex&masterUrl=http://node:port
/solr/<core_name>
Master url should be the existing index solr instance url.
On Mon, Aug 10, 2015 at 6:37 PM, saurabh tewari <sa...@gmail.com>
wrote:
> Hi,
>
> I recently started to move my solr index from 4.8 to 5.2 via replication
> from 4.8 master to 5.2 slave. I replaced all the primitive fieldtypes to
> Trie-fields, since the original ones are removed from 5.2 . Replication
> went successful, but when I fired a query on slave, it shows a class-cast
> exception in solr.DateField.I understand that my documents are still using
> old fieldtypes and my current schema doesn't support that. Is there any way
> I can move my existing index to 5.2?
>