0

esp-devs, i have a collection in a fast repository on which i use the following query to get all the entities in that collection.

:/xsearch?offset=0&hits=100&query=Anthony&view=collection01

However, this query is giving all the fields for every hit-record.

<HIT NO="1" RANK="101" SITEID="0" MOREHITS="0" FCOCOUNT="0">
  <FIELD NAME="name">anthony</FIELD>
  <FIELD NAME="employeeId">12345</FIELD>
  <FIELD NAME="department">aeronautical</FIELD>
</HIT>

I, however, am interested in only one field for every hit-record.

<HIT NO="1" RANK="101" SITEID="0" MOREHITS="0" FCOCOUNT="0">
  <FIELD NAME="employeeId">12345</FIELD>
</HIT>

is there any way to specify the only field i desire so that the response would contain only that for the hit-results.

Thanks, JUKE.

4

1 回答 1

0

最好的方法是创建一个视图。视图可以指定在结果中返回哪些字段和导航器。欲了解更多信息,请查看我的文章

于 2014-05-13T11:39:02.860 回答