tsgrp / OpenContent

TSG's Web Services for ECM Repositories
8 stars 4 forks source link

Parent attribute for HBase, DCTM, and Solr queries #81

Open mikeblum opened 7 years ago

mikeblum commented 7 years ago

In Alfresco, we can query on documents that belong to a certain folder or parent node using the @Parent meta-search attribute. To support View All Documents / Manage Relations, etc. It would be beneficial to make the Parent query attribute functional across all of our docbases.

Support:

TODO:

Paging @nwoodbine, @benallenallen

benallenallen commented 7 years ago

HBase that would be an easy query to run... we store the rel_parent_s as an attribute, so all we would have to do is run one query to get all of the documents that share that parent_id.

Which new endpoints in OC need to be implemented to address this?

mikeblum commented 7 years ago

@benallenallen: We merely need to update the respective queryImpls to handle a Parent attribute - no new REST endpoints should be required. AbstractAlfrescoEmbQueryImpl shows how that looks in the OCQuery DSL.