Undefined solr field feature type ID error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
tac
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Undefined solr field feature type ID error

tac
I am very new to Solr, and I am having implementation problems.

Generally following the GN instructions I installed Solr 6.6.0 as a
Linux service on port 8984, and then the core "catalog_srv", with the
sometimes-called schemaless "data-driven-schema"  (aka
'managed-schema').  I was able to successfully post, index and query the
Solr test documents.

I retrieved a default GeoServer USA states population map through a
GeoNetwork metadata record linked to my GeoServer, and it loaded and
displayed.  When I attempted to filter, it noted the WFS data was not
indexed.  When I tried to index, the Solr log recorded the SolrException
below, indicating an undefined field featureTypeId.

Do I need to add something to the managed-schema, or is there another
Solr schema that is customary to use with GeoNetwork?

(I presume solrconfig.xml is not involved?)

Thank you.

-- terry

2017-07-06 17:16:55.960 INFO  (qtp717356484-17) [   ]
o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/info/logging
params={wt=json&_=1499356853426&since=0} status=0 QTime=0
2017-07-06 17:16:58.265 INFO  (qtp717356484-11) [ x:catalog_srv]
o.a.s.c.S.Request [catalog_srv]  webapp=/solr path=/select
params={q=id:"http://localhost:8080/geoserver/wfs#topp\:states"&rows=1&wt=json}
hits=0 status=0 QTime=80
2017-07-06 17:17:05.962 INFO  (qtp717356484-13) [   ]
o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/info/logging
params={wt=json&_=1499356853426&since=0} status=0 QTime=0
2017-07-06 17:17:15.966 INFO  (qtp717356484-17) [   ]
o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/info/logging
params={wt=json&_=1499356853426&since=0} status=0 QTime=0
2017-07-06 17:17:25.971 INFO  (qtp717356484-11) [   ]
o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/info/logging
params={wt=json&_=1499356853426&since=0} status=0 QTime=0
2017-07-06 17:17:30.331 INFO  (qtp717356484-14) [ x:catalog_srv]
o.a.s.u.p.LogUpdateProcessorFactory [catalog_srv]  webapp=/solr
path=/update params={wt=javabin&version=2}{} 0 49
2017-07-06 17:17:30.333 ERROR (qtp717356484-14) [ x:catalog_srv]
o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException:
undefined field featureTypeId
         at
org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1328)
         at
org.apache.solr.schema.IndexSchema$SolrQueryAnalyzer.getWrappedAnalyzer(IndexSchema.java:455)
         at
org.apache.lucene.analysis.DelegatingAnalyzerWrapper$DelegatingReuseStrategy.getReusableComponents(DelegatingAnalyzerWrapper.java:84)
         at
org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:191)
         at
org.apache.lucene.util.QueryBuilder.createFieldQuery(QueryBuilder.java:241)
         at
org.apache.solr.parser.SolrQueryParserBase.newFieldQuery(SolrQueryParserBase.java:444)
         at
org.apache.solr.parser.QueryParser.newFieldQuery(QueryParser.java:61)
         at
org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:970)
         at
org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:460)
         at
org.apache.solr.parser.SolrQueryParserBase.handleQuotedTerm(SolrQueryParserBase.java:713)
         at org.apache.solr.parser.QueryParser.Term(QueryParser.java:548)
         at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:277)
         at org.apache.solr.parser.QueryParser.Query(QueryParser.java:161)
         at
org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:130)
         at
org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:211)
         at
org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:53)
         at org.apache.solr.search.QParser.getQuery(QParser.java:168)

        etc




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
tac
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Undefined solr field feature type ID error

tac
I just looked at the GeoNetwork log, which shows that there seems to be something wrong at the end of the solr analysis:

2017-07-06 21:30:21,146 INFO  [geonetwork.harvest.wfs.features] - Harvest features message received.
2017-07-06 21:30:21,153 INFO  [geonetwork.harvest.wfs.features] - WFSHarvesterEvent
WFSHarvesterParameter
url: http://192.168.0.16:8080/geoserver/wfs
typeName: topp:states
version:1.0.0
metadataUuid:ef8c7c35-efcf-4cb8-94de-7c7cafc29cb5
timeOut:60000
maxFeatures:-1
titleExpression:null
encoding:UTF-8
2017-07-06 21:30:21,183 INFO  [geonetwork.harvest.wfs.features] - Initializing harvester configuration for
      uuid 'ef8c7c35-efcf-4cb8-94de-7c7cafc29cb5', url 'http://192.168.0.16:8080/geoserver/wfs', feature type 'topp:states'.
          Exchange id is 'ID-M57-40485-1499399066555-0-1'.
2017-07-06 21:30:21,183 INFO  [geonetwork.harvest.wfs.features] - Checking parameters ...
2017-07-06 21:30:21,186 INFO  [geonetwork.harvest.wfs.features] - Parameters are accepted.
2017-07-06 21:30:21,201 INFO  [geonetwork.harvest.wfs.features] - Connecting using GetCatapbilities
      URL 'http://192.168.0.16:8080/geoserver/wfs?request=GetCapabilities&service=WFS&version=1.0.0'.
2017-07-06 21:30:21,594 INFO  [geonetwork.harvest.wfs.features] - Reading feature type 'topp:states' schema structure.
2017-07-06 21:30:21,817 INFO  [geonetwork.harvest.wfs.features] - Successfully analyzed 23 attributes in schema.
2017-07-06 21:30:21,820 INFO  [geonetwork.harvest.wfs.features] - Deleting features previously index from service
      'http://192.168.0.16:8080/geoserver/wfs' and feature type 'topp:states' in 'http://localhost:8984/solr/catalog_srv'
2017-07-06 21:30:22,109 ERROR [geonetwork.harvest.wfs.features] - Exception occured:
        Error from server at http://localhost:8984/solr/catalog_srv: undefined field featureTypeId
2017-07-06 21:30:22,110 ERROR [geonetwork.harvest.wfs.features] - Harvesting task terminated
         due to previous exception (Exchange ID-M57-40485-1499399066555-0-1).
tac
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Solr-GeoNetwork user documentation needed

tac
This post has NOT been accepted by the mailing list yet.
Since my last post, I have added the field "featureTypeId" within the managed-schema to resolve the error I was getting, despite using the  Solr data-driven schema.  So now I get the splash screen shown in the GeoNetwork map documentation, and I can limit the display with the spatial filter.  However, I simply do not know whether my work-around with the featureTypeId field is resolving a problem or misleading me.

I desperately need some documentation that describes the filters and other buttons on the map-filter screen should work.  Also, I don't know how the 'heatmap' button should work - nothing seems to happen, and this initially was my prime 'want' for including solr.

I have looked on GitHub, the highly-regarded GeoSolutions web page, and extensively used Google searches to no avail.

Any pointers to documentation would be very much appreciated.
Loading...