"Seegrid will be due for a migration to confluence on the 1st of August. Any update on or after the 1st of August will NOT be migrated"

Analysis of keywords search box

Contents

Related pages



Overview

Missing stuff

Get from https://cgsrv1.arrc.csiro.au/jira/browse/AUS-1452

LuceneSearcher class

  • org.fao.geonet.kernel.search.LuceneSearcher.makeSummary() reverse engineering
    1. input:
      • lucene hits
      • summaryConfig -> web/geonetwork/WEB-INF/config-summary.xml
      • resultType (hits?)
      • other stuff
    2. gets config:
      • indexKey (lucene index keyword)
    3. calls summarize()
  • org.fao.geonet.kernel.search.LuceneSearcher.summarize()
    1. loops through lucene hits (documents)
    2. gets all keyword values and counts them
    3. creates new summary xml element
      • adds keywork count
      • adds keyword name

Internal thesaurus and keyword services

Get thesaurus list http://localhost:8080/geonetwork/srv/en/xml.thesaurus.getList
Get list of keywords (?) http://localhost:8080/geonetwork/srv/en/xml.search.keywords?pNewSearch=yes
Get gmd:MD_Keywords XML fragment http://localhost:8080/geonetwork/srv/en/xml.keyword.get?thesaurus=external.discipline.Simplified__Parameters200912&id=http://resource.wagcoe.ivec.org/classifier/auscope/simplified_parameters/200912/COLA&multiple=false&_dc=1261031827778
Get HTML fragment list of all keywords used in records http://localhost:8080/geonetwork/srv/en/portal.search.keywords?&keyword=
Get HTML fragment list of all keywords used in records for keyword selector window http://localhost:8080/geonetwork/srv/en/portal.search.keywords?mode=selector&keyword=
Get narrower terms http://localhost:8080/geonetwork/srv/en/xml.search.keywordlink?request=narrower&thesaurus=external.discipline.Simplified__Parameters200912&id=http://resource.wagcoe.ivec.org/classifier/auscope/simplified_parameters/200912/T
Get broader terms http://localhost:8080/geonetwork/srv/en/xml.search.keywordlink?request=broader&thesaurus=external.discipline.Simplified__Parameters200912&id=http://resource.wagcoe.ivec.org/classifier/auscope/simplified_parameters/200912/T
Get related terms http://localhost:8080/geonetwork/srv/en/xml.search.keywordlink?request=related&thesaurus=external.discipline.Simplified__Parameters200912&id=http://resource.wagcoe.ivec.org/classifier/auscope/simplified_parameters/200912/T

Thesaurus search box

  1. Get thesaurus list: http://localhost:8080/geonetwork/srv/en/xml.thesaurus.getList?_dc=1261380986220
  2. Click on search icon.
  3. Get keyword list: http://localhost:8080/geonetwork/srv/en/xml.search.keywords?_dc=1261381016143&pNewSearch=true&pTypeSearch=1&pThesauri=&pMode=searchBox&pKeyword=*&maxResults=5
  4. Click "Add" button.
  5. Get keyword info:

TODO:

  • For our purposes step 3 (xml.search.keywords service) should be already enough! We don't need ISO19139-XML-fragments created by xml.keyword.get service.
  • Where to plug in broader/narrower service?

-- MichaelStegherr - 2009-12-02
Topic revision: r4 - 15 Oct 2010, UnknownUser
 

Current license: All material on this collaboration platform is licensed under a Creative Commons Attribution 3.0 Australia Licence (CC BY 3.0).