You must carefully go through the upgrade instructions starting from
1.4 upto 4.3. In particular the instructions for 1.4 to 3.1 and from
3.1 to 4.0 should be given special attention.

On Tue, Jun 25, 2013 at 11:43 AM, Sandeep Gupta <gupta...@gmail.com> wrote:
> Hello All,
>
> We are planning to migrate solr 1.4 to Solr 4.3 version.
> And I am seeking some help in this side.
>
> Considering Schema file change:
> By default there are lots of changes if I compare original Solr 1.4 schema
> file to Sol 4.3 schema file.
> And that is the reason we are not copying paste of schema file.
> In our Solr 1.4 schema implementation, we have some custom fields with type
> "textgen" and "text"
> So in migration of these custom fields to Solr 4.3,  should I use type of
> "text_general" as replacement of "textgen" and
> "text_en" as replacement of "text"?
> Please confirm the same.

Please check the text_general definition in 4.3 against the textgen
fieldtype in Solr 1.4 to see if they're equivalent. Same for text_en
and text.

>
> Considering Solrconfig change:
> As we didn't have lots of changes in 1.4 solrconfig file except the
> dataimport request handler.
> And therefore in migration side, we are simply modifying the Solr 4.3
> solrconfig file with his request handler.

And you need to add the dataimporthandler jar into Solr's lib
directory. DIH is not added automatically anymore.

>
> Considering the application development:
>
> We used all the queries as BOOLEAN type style (was not good)  I mean put
> all the parameter in query fields i.e
> *:* AND EntityName: <<>> AND <fileName>:<fieldValue> AND .....
>
> I think we should simplify our queries using other fields like df, qf ....
>

Probably. AND queries are best done by filter queries (fq).

> We also used to create Solr server object via CommonsHttpSolrServer() so I
> am planning to use now HttpSolrServer API>

Yes. Also, there was a compatibility break between Solr 1.4 and 3.1 in
the javabin format so old clients using javabin won't be able to
communicate with Solr until you upgrade both solr client and solr
servers.

>
> Please let me know the suggestion for above points also what are the other
> factors I need to take care while considering the migration.

There is no substitute for reading the upgrade sections in the changes.txt.

I'm not sure if Solr 4.3 will be able to read Solr 1.4 indexes. You
will most likely need to re-index your documents.

You should also think about switching to SolrCloud to take advantage
of its features.

--
Regards,
Shalin Shekhar Mangar.

Reply via email to