[opencms-dev] Solr index creation

Carl-Erik Herheim carl-erik.herheim at nsd.uib.no
Mon Jan 21 12:02:23 CET 2013


I use OpenCms 8.5.0 running on tomcat 7.0.29, and I used the standard 
distribution opencms.jar

Thanks,
Carl-Erik


RĂ¼diger Kurz skrev 21.01.2013 11:24:
> 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 !
>




More information about the opencms-dev mailing list