目录

Search

  1. 前言
  2. 业务实体服务简介
  3. EJB 业务实体服务调用
  4. REST 业务实体服务调用
  5. 适用于 Data Director 的 REST API
  6. SOAP 业务实体服务调用
  7. 交叉引用记录和 BVT 计算服务
  8. 支持企业关联服务
  9. 清理、分析和转换数据的外部调用
  10. 附录 , A: 使用 REST API 添加记录
  11. 附录 , B: 使用 REST API 上载文件
  12. 附录 , C: 使用 REST API 管理报告

业务实体服务指南

业务实体服务指南

请求 URL

请求 URL

搜索记录 URL 使用以下格式:
用于简单搜索的 URL
请对简单搜索使用以下 URL:
http://<host>:<port>/<context>/<database ID>/<business entity>?q=<string value>
向搜索记录 URL 发出以下 HTTP GET 请求:
GET http://<host>:<port>/<context>/<database ID>/<business entity>?q=<string value>
用于字段搜索的 URL
请对字段搜索使用以下 URL:
http://<host>:<port>/<context>/<database ID>/<business entity>?fq=<business entity field name>='<business entity field value>'
如果为业务实体字段指定负数值,例如
-120
,则返回的记录排名可能会受到影响。
用于构面搜索的 URL
请对包含构面的简单搜索使用以下 URL:
http://<host>:<port>/<context>/<database ID>/<business entity>?q=<string value>&facets=<field name>
请对包含构面的字段搜索使用以下 URL:
http://<host>:<port>/<context>/<database ID>/<business entity>?fq=<business entity field name>='<business entity field value>'&facets=<field name>
用于筛选器搜索的 URL
请对包含筛选器的简单搜索使用以下 URL:
http://<host>:<port>/<context>/<database ID>/<business entity>?q=<string value>&filters=<field name1>=<field value1> AND <field name2>=<field value2> ...
请在搜索中使用 q 或 fq 参数。
URL 编码
请使用 URL 编码,因为 URL 包含空格和单引号等字符。
以下示例显示了搜索记录 URL 的 URL 编码表示形式:
http://<host>:<port>/<context>/<database ID>/<business entity>?q=<field name>%3D%27<value of the field>