Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
244 stars 149 forks source link

Geoportal Facets SOLR issues #222

Closed MapZombie closed 8 years ago

MapZombie commented 8 years ago

Hi there, I have been trying to configure geoportal facets with SOLR and geoportal, without success. In reference to : https://github.com/Esri/geoportal-server/wiki/Geoportal-Facets

Basically no data is showing up in the g.html file, just an empty map and empty categories (I am able to access it at "localhost/gcservice/g.html". If somebody could shed some light on what I am missing that would be greatly appreciated.

I edited the g.html as follows: <div data-dojo-id="solrClient" data-dojo-type="g/solr/base/SolrClient" data-dojo-props=' collectionUrl:"http://localhost:8983/solr/geoport", filters:[{viewable:true, removable:false, urlParameterName:"fq", urlParameterValue:"id.table_s:table.docindex"}]'></div>

my gptdb2solr.xml file has been edited as follows: `

<property name="gpt.include.collections" value="true"/>
<property name="solr.collection.url" value="http://localhost:8983/solr/geoport/"/>
<property name="sql.database">
  <property name="driver" value="oracle.XXXX.driver.OracleDriver"/>
  <property name="url" value="xxxx:oracle:thin:@XXXX:XXXX:XXXX"/>
  <property name="username" value="geoportal"/>
  <property name="password" value="XXXXXXX"/>
</property>  

`

The schema.xml has also been edited as outlined in the GPF link above.

MapZombie commented 8 years ago

Issue resolved, need to use SOLR version 4.6.1.

Was testing with SOLR 6.0+