[英]How to get distinct values of a managed property through SharePoint search?
I am building a phone catalog of my organization (an AJAX application which accesses the search.asmx web service). 我正在构建我的组织的电话目录(一个访问search.asmx Web服务的AJAX应用程序)。 I'd like to show a list box where the user could select a department (which is stored in managed property
Department
). 我想显示一个列表框,用户可以在其中选择一个部门(存储在托管属性
Department
)。 To fill the list box with values, I need to somehow select all the distinct values of that property. 要使用值填充列表框,我需要以某种方式选择该属性的所有不同值。 Is it possible through search.asmx web service?
是否可以通过search.asmx网络服务?
What I've found: 我发现了什么:
The two findings are somewhat inconsistent. 这两项调查结果有些不一致。 (and, yes the search really returns ERROR_BAD_QUERY).
(并且,是的,搜索确实返回ERROR_BAD_QUERY)。
Why bother to check with the web service or complicate it? 为什么要费心去检查网络服务还是复杂化?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.