Skip to content

Commit 180537b

Browse files
KoalaGeofxprunayre
authored andcommitted
Update portal-configuration.md
Add example for Keyword filtering for Sub Portal configuration.
1 parent 113b588 commit 180537b

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

docs/manual/docs/administrator-guide/configuring-the-catalog/portal-configuration.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,29 @@ The list of sub-portal available is at <http://localhost:8080/geonetwork/srv/api
4444

4545
## Example of usage
4646

47+
To find the lucene element terms available for filtering you can query a record in your ElasticSearch instance:
48+
49+
`POST /gn-records*/_search
50+
{"query":{"query_string":{"query":"+uuid:\"EXT_DS120344\""}}}`
51+
52+
This shows elements such as keywords are grouped together under a "tag" element. A tag element in a multilingual catalogue looks something like this:
53+
```
54+
"tag" : [
55+
{
56+
"default" : "BIRDS",
57+
"langeng" : "BIRDS"
58+
},
59+
{
60+
"default" : "MARINE",
61+
"langeng" : "MARINE",
62+
"key" : "https://registry.geonetwork-opensource.org/theme/nrw-keywords/marine-uc"
63+
},
64+
...
65+
]
66+
```
67+
68+
You can use the lucene search `+tag.default:"BIRDS"` as the filter for a sub-portal.
69+
4770
### Creating an INSPIRE directive sub-portal
4871

4972
For the INSPIRE directive, a catalogue administrator needs to publish an entry point providing access only to INSPIRE related records. An INSPIRE sub-portal can be created with a filter on keywords `+thesaurusName:"GEMET - INSPIRE themes, version 1.0"`.
@@ -84,4 +107,4 @@ If the `publish` operation is removed from `oca` group, then records will not lo
84107
In some situations, you also want to share templates among partners. There are 2 options for this:
85108

86109
- Publish the template in all partner's groups. The main drawback in this case is that if a new group is added, the templates need to be published to that new group.
87-
- Create a dedicated group for shared records eg. `sharedGroup`. Publish templates in that shared space. Alter the sub-portal filter to match either the partner group or the shared one. `+_groupPublished:(oca OR sharedGroup)`.
110+
- Create a dedicated group for shared records eg. `sharedGroup`. Publish templates in that shared space. Alter the sub-portal filter to match either the partner group or the shared one. `+groupPublished:(oca OR sharedGroup)`.

0 commit comments

Comments
 (0)