Alfresco CMIS:搜索内容时检索相关上下文

Alfresco CMIS: Retrieving relevant context when searching for content

我正在使用 Alfresco Community 201707 x64。我的应用程序正在使用 Apache Chemistry Open CMIS 1.1 通过 CMIS 查询存储库。

如标题所示,问题是:在存储库中查询文档内容时(在搜索查询中使用 CONTAINS 谓词),我如何检索文档的相关上下文?我可以使用 CMIS 来完成吗,还是必须使用其他方法?

例如,在 Alfresco Share 中,当用户在存储库中搜索包含某个词的文档时,会显示相关结果以及突出显示该词的文档内容片段。

我认为这在 CMIS 中不可用,但是如果使用 SOLR,则通常可用,具体取决于 Alfresco 版本。

http://docs.alfresco.com/5.2/concepts/search-api-highlight.html

正如@Lista所说,

这是 Alfresco 5.2.1 附带的新功能:http://docs.alfresco.com/5.2/concepts/search-api-highlight.html

您可以通过调用 /search 端点来使用它:

The Search API provides access to the search features of Alfresco Content Services.

The Search API accepts POST requests containing JSON structures as described in the table below. The JSON is structured to group options related to different query concepts together.

The Search API is defined under the search namespace. It uses the /search endpoint, which does not accept any URL parameters and is therefore, completely controlled via the parameters in a POST body.

但据我所知,这是CMIS做不到的。您可以切换与 Alfresco 交互的方式(REST 方式)吗?