[opencms-dev] Solr index creation
Siegfried Ehret
s.ehret at eurelis.com
Mon Jan 21 12:18:19 CET 2013
Hi,
We had this error when trying to change index configuration in the back office.
We don't have this error when rebuilding index.
We are using standard solr configuration.
I just tried to create an index with a solr_field configuration (https://github.com/alkacon/opencms-core/blob/branch_8_5_x/modules/opencms.properties current version is 8.5.0.8) and it works fine.
@Carl-Erik, you should try an updated version of OpenCms from GitHub (last tag is 8.5.0.3, master branch is 8.5.0.8).
Siegfried
On 01/21, Rüdiger Kurz wrote:
> Hi Carl-Erik,
>
> which version of OpenCms do you use and did you compile the
> opencms.jar by your own?
>
> @Siegfried: How did you solve that problem?
>
> regards
> Rüdiger
>
> Am 21.01.2013 10:27, schrieb Carl-Erik Herheim:
> >
> >Hi,
> >I have the same problem as described below, whenever I try to rebuild
> >the index I get:
> >java.lang.ClassCastException: org.opencms.search.fields.CmsSearchField
> >cannot be cast to org.opencms.search.solr.CmsSolrField
> >
> >I have set the correct classes for the index and field configuration, so
> >is there anything else that could cause this problem?
> >The solr source should use <indexer
> >class="org.opencms.search.CmsVfsIndexer"/> ?
> >
> >Thanks,
> >Carl-Erik
> >
> >
> >opencms-dev-request at opencms.org skrev 28.09.2012 12:00:
> >>Message: 8
> >>Date: Thu, 27 Sep 2012 18:26:06 +0200
> >>From: R?diger Kurz<r.kurz at alkacon.com>
> >>To: The OpenCms mailing list<opencms-dev at opencms.org>
> >>Subject: Re: [opencms-dev] Solr index creation
> >>Message-ID:<50647E1E.9080803 at alkacon.com>
> >>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >>
> >>Hi,
> >>
> >>you have to set the right classes for the index, and the field
> >>configuration like:
> >>
> >><index class="org.opencms.search.solr.CmsSolrIndex">
> >> [...]
> >></index>
> >>
> >>and
> >>
> >><fieldconfiguration
> >>class="org.opencms.search.solr.CmsSolrFieldConfiguration">
> >> [...]
> >></fieldconfiguration>
> >>
> >>otherwise the Lucene search index implementation is used.
> >>
> >>Greetings R?diger
> >>
> >>Am 27.09.2012 18:04, schrieb Siegfried Ehret:
> >>>> Hi all,
> >>>>
> >>>> When I try to create an index with a solr_fields configuration, I got
> >>>> the following error : "org.opencms.search.solr.CmsSolrField cannot be
> >>>> cast to org.opencms.search.fields.CmsSearchField"
> >>>>
> >>>> The index is created with the field configuration though.
> >>>>
> >>>> Should I report this as a bug ?
> >>>>
> >>>> Peace !
>
> --
> Kind Regards,
> Rüdiger.
>
> -------------------
>
> Rüdiger Kurz
>
> Alkacon Software GmbH - The OpenCms Experts
> http://www.alkacon.com - http://www.opencms.org
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
--
Siegfried Ehret
Ingénieur d'études et de développement
Eurelis
01 49 97 20 23
More information about the opencms-dev
mailing list