Parent-Child Mapping
We would like to associate employees with the branch where they work. We need to be able to search for branches, individual employees, and employees who work for particular branches, so the nested model will not help. So I want to use parent-clild mapping into Geoserver from Elasticsearch using ElasticGeo.
Could this be supported?
I think it could be supported but it's not something that's been looked at yet. If you're interesting in contributing the capability, it would be welcome. A good starting point might be to create test cases that define the mappings, associated sample data, expected feature types, and sample searches and expected search results. Here are some links to the files that I think would relate to the initial test development:
- Mappings used in tests: activate_mappings_ng.json
- Test data file: wifiAccessPoint.json
- Test class for schema: ElasticDataStoreIT.java
- Test class for filtering (searching): ElasticFeatureFilterIT.java
This functionality is supported. We use parent child relationships and it works fine.