The property-meanings.xml fileīefore adding new meanings, check the property-meanings.xml file to see if an existing meaning will suit your need. Instructions are provided later in this topic, but first read the section on the property-meanings.xml file below. You will need to re-approve the resources through the geoportal Administration interface for them to be reindexed with your new property meaning. After adding the xpath to the property meaning that matches your metadata element's meaning, save the indexables.xml file and restart the geoportal web application. If the xpath to the metadata element is not provided in the indexables.xml document, you can add its xpath to one of the property meanings listed in that file. So we could type apiso.Lineage:searchTerm in the Search field on the geoportal search page to search the Lineage elements for searchTerm. When we look up the apiso name="apiso:Lineage" in the property-meaningx.xml file, we see that the queriable for this is the text apiso.Lineage. In our example, we do find it in the apiso-indexables.xml file, and see that it is indexed by the property meaning name "apiso:Lineage". In our Lineage example, we copied the string /gmd:MD_Metadata/gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:lineage/gmd:LI_Lineage/gmd:statement/gco:CharacterString from the inspire-iso-19115-definition.xml file and searched for it in the apiso-indexables.xml file. To do this, return to the indexables.xml file, and search for the xpath you just copied. In order for the metadata element to be indexed, its xpath must be listed in the indexables.xml file referenced by its metadata profile. Copy the xpath from that select attribute. To find the xpath for the metadata element of interest, find the element for that metadata element in the definition.xml file. Once you have identified which indexables.xml file is referenced, open that indexables.xml file in a text or XML editor. In our example,this points to the apiso-indexables.xml file from the \\geoportal\WEB-INF\classes\gpt\metadata\iso folder. To find the indexables.xml file, look in the attribute in the definition.xml file. Here, we will need to identify which indexables.xml file is referenced by this profile, and also find the xpath to the metadata element of interest. For example if we want to investigate if the Lineage element from the INSPIRE (Data) profile, we start by opening the inspire-iso-19115-definition.xml file in a text editor. To check if the element is already indexed, identify the definition.xml file for the profile that references the metadata element. However, if you have created a custom metadata profile with new metadata parameters, or added new metadata elements to the default editors, then you may need to define the indexing for the element. If a metadata element appears in one of the geoportal's default metadata editors, it is likely that this element is already indexed by default. Determine if a metadata element is already indexed by default To enable this customization, see Index All Metadata Content. The geoportal can be customized so that it automatically indexes all metadata content, regardless of which parameter it is associated with in the metadata. This in turn defines how that element will be indexed and searched. The indexables.xml makes a connection between an element's XML xpath and its associated meaning in the proptery-meanings.xml file. These properties are usually captured in that profile's indexables.xml file. The Geoportal references property-meanings.xml to index the metadata value for search and retrieval.Įach geoportal metadata profile's definition.xml file can specify the set of properties that will be indexed. This 'meaning' determines how Lucene will index the content and how it may be used in searching.īefore a 'meaning' value can be used, it has to be defined in a file called property-meanings.xml, located in the \\geoportal\WEB-INF\classes\gpt\metadata folder. By 'meaning', we are referring to a concept or predicate that you would like to specifically search or query. To facilitate the more advanced features of Lucene - the technology used for the Geoportal Server's search indexing - this information is assigned a particular meaning. When publishing a metadata document, certain content from the document will be submitted for indexing by the search engine. Indexing is important because it determines what properties are queriable and how search results are returned when a user submits search criteria to the geoportal. Details of Lucene Indexing in the Geoportalĭetails of Lucene Indexing in the Geoportal.Back to Top Details of Lucene Indexing in the Geoportal In this topic
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |