Changes between Version 6 and Version 7 of proposals/LuceneOnlySearch


Ignore:
Timestamp:
Nov 2, 2011, 6:58:26 AM (12 years ago)
Author:
Fxp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • proposals/LuceneOnlySearch

    v6 v7  
    8787
    8888
    89 The q service (#485) requires to retrieve those information from the index directly instead of dumping all index fields. Some of them are already available:
    90  * id=_id
    91  * schema=_schema
    92  * createDate=_createDate
    93  * changeDate=_changeDate
    94  * isTemplate=_isTemplate
    95  * isHarvested=_isHarvested
    96  * popularity=_popularity
    97  * rating=_rating
    98  * displayOrder=_displayOrder
    99  * view=_view
    100  * notify=_notify
    101  * download=_download
    102  * dynamic=_dynamic
    103  * featured=_featured
    104  * owner=_owner
    105  * isPublishedToAll=_isPublishedToAll
    106  * ownername=_ownername
    107  * category=_category
    108  * valid=_valid
    109  * baseUrl=?
    110  * locService=?
    111  * selected=selected
    112  * source=_source
    113  * edit=_edit
    114  * uuid=_uuid
    115  * title=title
    116  * abstract=abstract
    117  * keyword=keyword
    118  * parentId=parentUuid
    119  * datasetcreationdate=createDate
    120  * changeDate=changeDate
    121 
    122 Re-worked field:
    123  * image=image (| separated)
    124  * link=link (| separated)
    125  * geoBox (| separated)
    126  * responsibleParty (| separated)
    127  * Constraints=accessConstr (Codelist value only)
    128  * Constraints=otherConstr
    129  * !SecurityConstraints=classif (Codelist value only)
    130  * Constraints=conditionApplyingToAccessAndUse
    131 
    132 New field added:
    133  * datasetLang=datasetLang
    134  * language=language
    135  * spatialRepresentationType=spatialRepresentationType
    136  * serviceType=serviceType
     89The q service (#485) requires to retrieve those information from the index directly instead of dumping all index fields. The configuration is stored in config-lucene.xsl
     90
     91{{{
     92<!--
     93                        List of fields to dump when using q service. Fields must be stored in the index.
     94                -->
     95                <dumpFields>
     96                        <field name="_isTemplate" tagName="isTemplate"/>
     97                        <field name="_isHarvested" tagName="isHarvested"/>
     98                        <field name="_popularity" tagName="popularity"/>
     99                        <field name="_rating" tagName="rating"/>
     100                        <field name="_displayOrder" tagName="displayOrder"/>
     101                        <field name="_view" tagName="view"/>
     102                        <field name="_notify" tagName="notify"/>
     103                        <field name="_download" tagName="download"/>
     104                        <field name="_dynamic" tagName="dynamic"/>
     105                        <field name="_featured" tagName="featured"/>
     106                        <field name="_owner" tagName="owner"/>
     107                        <field name="_isPublishedToAll" tagName="isPublishedToAll"/>
     108                        <field name="_ownername" tagName="ownername"/>
     109                        <field name="_cat" tagName="category"/>
     110                        <field name="_valid" tagName="valid"/>
     111                        <field name="_valid_schematron-rules-geonetwork" tagName="valid_schematron-rules-geonetwork"/>
     112                        <field name="_valid_schematron-rules-iso" tagName="valid_schematron-rules-iso"/>
     113                        <field name="_valid_schematron-rules-inspire" tagName="valid_schematron-rules-inspire"/>
     114                        <field name="_valid_xsd" tagName="valid_xsd"/>
     115                        <field name="_selected" tagName="selected"/>
     116                        <field name="_source" tagName="source"/>
     117                        <field name="_edit" tagName="edit"/>
     118                        <field name="title" tagName="title"/>
     119                        <field name="abstract" tagName="abstract"/>
     120                        <field name="keyword" tagName="keyword"/>
     121                        <field name="parentUuid" tagName="parentId"/>
     122                        <field name="image" tagName="image"/>
     123                        <field name="link" tagName="link"/>
     124                        <field name="responsibleParty" tagName="responsibleParty"/>
     125                        <field name="accessConstr" tagName="Constraints"/>
     126                        <field name="otherConstr" tagName="Constraints"/>
     127                        <field name="classif" tagName="SecurityConstraints"/>
     128                        <field name="conditionApplyingToAccessAndUse" tagName="Constraints"/>
     129                        <field name="datasetLang" tagName="datasetLang"/>
     130                        <field name="language" tagName="language"/>
     131                        <field name="spatialRepresentationType" tagName="spatialRepresentationType"/>
     132                        <field name="serviceType" tagName="serviceType"/>
     133                        <field name="geoBox" tagName="geoBox"/>
     134                </dumpFields>
     135}}}
     136
     137Complex fields like image, link, geoBox which are composed of child element are stored as "|" separated value. The client !DataStore takes care of splitting the value to extract the information.
     138
     139{{{
     140<?xml version="1.0" encoding="UTF-8"?>
     141<response from="1" to="1" selected="0">
     142  <summary count="1" type="local" hitsusedforsummary="1">
     143    ...
     144  </summary>
     145  <metadata>
     146    <popularity>3</popularity>
     147    <source>2f788e36-ca8e-4eeb-adc6-4d0c7da6eaf1</source>
     148    <owner>1</owner>
     149    <link>|Online link to the 'Water Resources and Irrigation in Africa'- website|http://www.fao.org/ag/AGL/aglw/aquastat/watresafrica/index.stm|WWW:LINK-1.0-http--link|text/html</link>
     150    <link>basins.zip|Hydrological basins in Africa (Shapefile Format)|http://localhost:8080/geonetwork/srv/en/resources.get?id=10&amp;fname=basins.zip&amp;access=private|WWW:DOWNLOAD-1.0-http--download|application/zip</link>
     151    <link>hydrological_basins|Hydrological basins in Africa|http://geonetwork3.fao.org/ows/296|OGC:WMS-1.1.1-http-get-map|application/vnd.ogc.wms_xml</link>
     152    <responsibleParty>pointOfContact|metadata|FAO - NRCW|</responsibleParty>
     153    <title>Hydrological Basins in Africa (Sample record, please remove!)</title>
     154    <isTemplate>n</isTemplate>
     155    <valid>-1</valid>
     156    <rating>0</rating>
     157    <category>maps</category>
     158    <category>datasets</category>
     159    <category>interactiveResources</category>
     160    <abstract>Major hydrological basins and their sub-basins. This dataset ...
     161   assigned respectively to internal sub-basins and to sub-basins draining into the sea)</abstract>
     162    <keyword>watersheds</keyword>
     163    <keyword>river basins</keyword>
     164    <keyword>water resources</keyword>
     165    <keyword>hydrology</keyword>
     166    <keyword>AQUASTAT</keyword>
     167    <keyword>AWRD</keyword>
     168    <keyword>Africa</keyword>
     169    <keyword>inlandWaters</keyword>
     170    <image>thumbnail|../../srv/en/resources.get?uuid=da165110-88fd-11da-a88f-000d939bc5d8&amp;fname=thumbnail_s.gif&amp;access=public</image>
     171    <datasetLang>eng</datasetLang>
     172    <geoBox>-17.3|-34.6|51.1|38.2</geoBox>
     173    <isHarvested>n</isHarvested>
     174    <spatialRepresentationType>vector</spatialRepresentationType>
     175    <language>eng</language>
     176    <geonet:info xmlns:geonet="http://www.fao.org/geonetwork">
     177      <id>1625</id>
     178      <uuid>da165110-88fd-11da-a88f-000d939bc5d8</uuid>
     179      <schema>iso19139</schema>
     180      <createDate>2007-07-19T14:45:07</createDate>
     181      <changeDate>2007-11-06T12:13:00</changeDate>
     182      <source>2f788e36-ca8e-4eeb-adc6-4d0c7da6eaf1</source>
     183      <edit>true</edit>
     184      <owner>true</owner>
     185      <selected>false</selected>
     186    </geonet:info>
     187  </metadata>
     188}}}
    137189
    138190=== Backwards Compatibility Issues ===