You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Mike <mz...@gmail.com> on 2022/07/12 15:26:16 UTC

Unable to create core Caused by: solr.LatLonType

Hello!

Is Nutch 1.18 compatible with Solr 9.0? I get an error when creating a core
with the Nutch schema.xml file:

  # sudo -u solr /opt/solr/bin/solr create -c core01 -d
/opt/solr/server/solr/configsets/core01/conf/

ERROR: Error CREATEing SolrCore 'core01': Unable to create core [core01]
Caused by: solr.LatLonType

Thanks

Mike

Re: Unable to create core Caused by: solr.LatLonType

Posted by Sebastian Nagel <wa...@googlemail.com.INVALID>.
Fyi, the issue is tracked on

  https://issues.apache.org/jira/browse/NUTCH-2955

~Sebastian

On 7/14/22 12:54, Sebastian Nagel wrote:
> Hi Mike,
> 
> if you do not use the plugin index-geoip, you could simply delete the line
> 
>   <fieldType name="location" class="solr.LatLonType"
>              subFieldSuffix="_coordinate"/>
> 
> 
> Otherwise, after the deprecation and the removal of the LatLonType class [1],
> it should be:
> 
>   <fieldType name="location" class="solr.LatLonPointSpatialField"/>
> 
> But I haven't verified whether indexing with index-geoip enabled and the
> retrieval works.
> 
> 
> In any case, please open a Jira issue on
>    https://issues.apache.org/jira/projects/NUTCH
> Thanks!
> 
> 
> Best,
> Sebastian
> 
> [1]
> https://solr.apache.org/docs/8_11_2/solr-core/org/apache/solr/schema/LatLonType.html
> 
> On 7/12/22 17:26, Mike wrote:
>> Hello!
>>
>> Is Nutch 1.18 compatible with Solr 9.0? I get an error when creating a core
>> with the Nutch schema.xml file:
>>
>>   # sudo -u solr /opt/solr/bin/solr create -c core01 -d
>> /opt/solr/server/solr/configsets/core01/conf/
>>
>> ERROR: Error CREATEing SolrCore 'core01': Unable to create core [core01]
>> Caused by: solr.LatLonType
>>
>> Thanks
>>
>> Mike
>>

Re: Unable to create core Caused by: solr.LatLonType

Posted by Sebastian Nagel <wa...@googlemail.com.INVALID>.
Hi Mike,

if you do not use the plugin index-geoip, you could simply delete the line

  <fieldType name="location" class="solr.LatLonType"
             subFieldSuffix="_coordinate"/>


Otherwise, after the deprecation and the removal of the LatLonType class [1],
it should be:

  <fieldType name="location" class="solr.LatLonPointSpatialField"/>

But I haven't verified whether indexing with index-geoip enabled and the
retrieval works.


In any case, please open a Jira issue on
   https://issues.apache.org/jira/projects/NUTCH
Thanks!


Best,
Sebastian

[1]
https://solr.apache.org/docs/8_11_2/solr-core/org/apache/solr/schema/LatLonType.html

On 7/12/22 17:26, Mike wrote:
> Hello!
> 
> Is Nutch 1.18 compatible with Solr 9.0? I get an error when creating a core
> with the Nutch schema.xml file:
> 
>   # sudo -u solr /opt/solr/bin/solr create -c core01 -d
> /opt/solr/server/solr/configsets/core01/conf/
> 
> ERROR: Error CREATEing SolrCore 'core01': Unable to create core [core01]
> Caused by: solr.LatLonType
> 
> Thanks
> 
> Mike
>