Uploaded image for project: 'Repository'
  1. Repository
  2. REPO-1070

Allow Queries (nodes, people, sites) to use custom properties (via system-wide config for "query template" - per search type)

    Details

      Description

      Story
      As an Alfresco administrator I want to be able to configure the query template used by the /queries endpoints so the executed query can include custom model properties.

      Acceptance Criteria

      • The default query template for nodes, sites and people have been externalised to system-configurable properties i.e. in repository.properties
      • alfresco-global.properties can be used to override the query template to include a custom property

      Notes
      The V0 live search apis (with share-services / slingshot apis) allow the webscripts to be re-configured with different query templates, eg. to use custom properties.

      Here's how one partner customised/re-configured to allow v0 live search to also use custom properties : https://www.bluefishgroup.com/insights/ecm/adding-metadata-fields-to-simple-search-and-live-search-with-alfresco-5/

      Implementation Notes

      • Suggested property names:
        • system.api.queries.nodes.query.template
        • system.api.queries.sites.query.template
        • system.api.queries.people.query.template

      Questions

      • see comments - general search api allows template to be passed-in via client, should we allow this here (instead) ? No, see comment response for detail.

      Implementation Notes

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jvonka Jan Vonka
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: