Opened 12 years ago
Closed 12 years ago
#1187 closed enhancement (fixed)
Index aggregation info
Reported by: | fxp | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | v2.10.0 RC0 |
Component: | General | Version: | v2.8.0RC2 |
Keywords: | Cc: |
Description
GeoNetwork support aggregation in the metadata editor (http://trac.osgeo.org/geonetwork/wiki/MetadataSiblings) but does not provide ways to search for records having siblings and search according to the type of relation.
Aggregation info is indexed by adding the following fields to the index:
- agg_use: boolean
- agg_with_association: {$associationType}
- agg_{$associationType}: {$code}
- agg_{$associationType}_with_initiative: {$initiativeType}
- agg_{$associationType}_{$initiativeType}: {$code}
Sample queries:
- Search for records with siblings: http://localhost:8080/geonetwork/srv/fre/q?agg_use=true
- Search for records having a crossReference with another record: http://localhost:8080/geonetwork/srv/fre/q?agg_crossReference=23f0478a-14ba-4a24-b365-8be88d5e9e8c
- Search for records having a crossReference with another record: http://localhost:8080/geonetwork/srv/fre/q?agg_crossReference=23f0478a-14ba-4a24-b365-8be88d5e9e8c
- Search for records having a crossReference of type "study" with another record: http://localhost:8080/geonetwork/srv/fre/q?agg_crossReference_study=23f0478a-14ba-4a24-b365-8be88d5e9e8c
- Search for records having a crossReference of type "study": http://localhost:8080/geonetwork/srv/fre/q?agg_crossReference_with_initiative=study
- Search for records having a "crossReference" : http://localhost:8080/geonetwork/srv/fre/q?agg_with_association=crossReference
Note:
See TracTickets
for help on using tickets.
Master commit cd44a0457fbf1313a1009f99d8cee41be02e14d3