[
https://issues.apache.org/jira/browse/NUTCH-2655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16686226#comment-16686226
]
ASF GitHub Bot commented on NUTCH-2655:
---------------------------------------
sebastian-nagel closed pull request #395: NUTCH-2655 Update Solr schema.xml for
Solr 7.x
URL: https://github.com/apache/nutch/pull/395
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/conf/schema.xml b/conf/schema.xml
index 6e7d5bfa5..2b095e59d 100644
--- a/conf/schema.xml
+++ b/conf/schema.xml
@@ -300,6 +300,19 @@
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldType name="booleans" class="solr.BoolField" sortMissingLast="true"
multiValued="true"/>
+ <!-- required for Solr 6 + 7 compatibility -->
+ <fieldType name="pdate" class="solr.DatePointField" docValues="true"/>
+ <fieldType name="pdates" class="solr.DatePointField" docValues="true"
multiValued="true"/>
+ <fieldType name="pint" class="solr.IntPointField" docValues="true"/>
+ <fieldType name="pfloat" class="solr.FloatPointField" docValues="true"/>
+ <fieldType name="plong" class="solr.LongPointField" docValues="true"/>
+ <fieldType name="pdouble" class="solr.DoublePointField" docValues="true"/>
+ <fieldType name="pints" class="solr.IntPointField" docValues="true"
multiValued="true"/>
+ <fieldType name="pfloats" class="solr.FloatPointField" docValues="true"
multiValued="true"/>
+ <fieldType name="plongs" class="solr.LongPointField" docValues="true"
multiValued="true"/>
+ <fieldType name="pdoubles" class="solr.DoublePointField" docValues="true"
multiValued="true"/>
+ <fieldType name="random" class="solr.RandomSortField" indexed="true"/>
+
<!-- sortMissingLast and sortMissingFirst attributes are optional
attributes are
currently supported on types that are sorted internally as strings
and on numeric types.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Update Solr schema.xml for Solr 7.x
> -----------------------------------
>
> Key: NUTCH-2655
> URL: https://issues.apache.org/jira/browse/NUTCH-2655
> Project: Nutch
> Issue Type: Bug
> Components: indexer, plugin
> Affects Versions: 1.15
> Reporter: Sebastian Nagel
> Priority: Major
> Fix For: 1.16
>
>
> The Solr schema.xml is not compatible with Solr 7.x which is used by Nutch
> 1.15. I've tested Solr 7.3.1 and 7.5.0: when using the current schema.xml,
> Solr fails and complains about unknown field types:
> {noformat}
> 2018-10-15 12:55:24.484 ERROR (qtp102617125-17) [ x:nutch]
> o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: Error
> CREATEing SolrCore 'nutch': Unable to create core [nutch] Caused by:
> fieldType 'pdates' not found in the schema
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)