Geoportal: Search returned no results

3187
4
01-16-2013 10:25 PM
fredrickotieno
New Contributor
I have Geoportal 1.2.2 installed and running under Debian Linux with Tomcat6 and MySql. User authentication is managed under LDAP. The Geoportal seem to run fine. I have logged in as gptadmin, successfully uploaded a test metadata from local disk and approved. The Metadata was edited in ArcCatalog with FGDC CSGDM profile. When I do a search with title keyword, I get "Search returned no results" and I don't see any entry in browse catalog. I have made changes in gpt.xml to no avail. Kindly assist.
Attached is  is gpt.xml, metadata, and log


tomcat logs
Jan 17, 2013 8:29:39 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.0.3 (FCS b03) for context '/geoportal'
Jan 17, 2013 8:29:42 AM org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from jar:file:/var/lib/tomcat6/webapps/geoportal/WEB-INF/lib/struts-tiles-1.3.10.jar!/org/apache/struts/tiles/chain-config.xml
Jan 17, 2013 8:29:43 AM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
INFO: Tiles definition factory loaded for module ''.
0 Kudos
4 Replies
CliveReece
Esri Contributor
Something is broken on the gpt.rar you attached. 

Sounds like the metadata is not getting written to the Geoportal index. 
You can view the index from http://<insert your Geoportal server domain>/geoportal/rest/index/stats.

Likely culprits to investigate:
1. The Geoportal index location exists and is specified correctly in gpt.xml (value in /lucene/indexLocation)
2. Make sure the index location path is writable by the process running the Geoportal Server web container

Good luck
0 Kudos
fredrickotieno
New Contributor
http://192.168.5.12/geoportal/rest/index/stats  returns a blank page

this is the lucene tag in my gpt.xml
<lucene
indexLocation="/usr/local/etc/lucene"
writeLockTimeout="60000"
useNativeFSLockFactory="true"
analyzerClassName="org.apache.lucene.analysis.standard.StandardAnalyzer">
<!-- <adaptor name="like" className="com.esri.gpt.catalog.lucene.StandardNetworkParserAdaptor"> <attribute key="baseUrl" value="http://serverName/OntologyService/query?threshold=0.25&term="/> </adaptor> -->

</lucene>

These are the contents of lucene index directory
root@geoportaltest:/usr/local/etc/lucene# ls
_0_1.del _0.cfs _1_1.del _1.cfs _2_1.del _2.cfs _3.cfs assertion segments_5 segments.gen

I have stopped, deleted files  and started tomcat.
These are the contents again: root@geoportaltest:/usr/local/etc/lucene# ls
_0.cfs assertion segments_2 segments.gen write.lock
0 Kudos
CliveReece
Esri Contributor
And you are still not seeing any search results?  May I ask you to change the approval status of all your approved records to 'Disapproved', then filter on 'Disapproved' records and set them all to 'Approved' and see if that makes a difference (i.e. you get search results).
0 Kudos
CliveReece
Esri Contributor
Duplicate thread.  Let's consolidate our collective responses and replies here:  https://sourceforge.net/projects/geoportal/forums/forum/1096644/topic/6635299/index/page/1
0 Kudos