在日语的Watson Discovery集合中,我使用以下引用配置了查询扩展,以便“ ABCDAea1”,“ ABCDAea”,“ ea1”,“ ea”都是同义词。
https://console.bluemix.net/docs/services/discovery/using.html#-
curl -u ***:*** -X GET "https://gateway.watsonplatform.net/discovery/api/v1/environments/***/collections/***/expansions?version=2018-03-05"
{"expansions":[{"expanded_terms":[""]}]}
curl -X POST -u ***:*** -H "Content-Type: application/json" -d @expansions.json "https://gateway.watsonplatform.net/discovery/api/v1/environments/***/collections/***/expansions?version=2018-03-05"
{"expansions":[{"expanded_terms":["ABCDAea1","ABCDAea","ea1","ea"]}]}
但是搜索结果没有达到我的预期。
我期望:
(1)搜索“ ea1”,然后单击“ ea1”“ ABCDAea1”。另外,突出显示了“ ea1”,“ ABCDAea1”。
(2)我搜索“ ABCDAea1”,然后命中“ ea1”“ ABCDAea1”。另外,突出显示了“ ea1”,“ ABCDAea1”。
但是结果是:
(1)我搜索“ ea1”,然后仅命中“ ea1”,而不是“ ABCDAea1”。另外,突出显示“ ea1”,“ 1”。
(2)我搜索“ ABCDAea1”,然后仅命中“ ABCDAea1”,而不是“ ea1”。另外,“ ABCDAea1”,“ 1”突出显示。
我在设置上是否犯了一些错误或对查询扩展的规范有误解?