安装和升级 > Windchill 安装和配置 > 使用 PTC 解决方案安装程序 > 安装 Windchill 解决方案 > 可选产品设置 > Windchill Index Search 安装 > Windchill Index Search 安装后配置 > 设置索引搜索客户端的特性
  
设置索引搜索客户端的特性
设置以下特性,以将运行 Solr 的主机作为 Windchill 中的受信任主机进行添加。这样才能允许 Solr 从 Windchill 下载内容:
xconfmanager -s wt.auth.trustedHosts=<Solr 主机> -t codebase/wt.properties -p
* 
如果您已在高可用性模式 (云模式) 下安装索引搜索服务器,则提供以逗号分隔的 Solr 主机列表。例如:
xconfmanager -s wt.auth.trustedHosts=host1.ptcnet.ptc.com,host2.ptcnet.ptc.com -t codebase/wt.properties -p
设置以下特性,以指定 Solr 在从 Windchill 下载内容时用于执行 Windchill 验证的用户:
xconfmanager -s wt.index.solrEffectiveUid=<用户 ID> -t codebase/wt.properties -p
例如:
xconfmanager -s wt.index.solrEffectiveUid=SolrAdmin -t codebase/wt.properties -p
* 
系统应创建一个用户,并授予该用户对 WTObject 的读取和下载权限。Solr 使用此用户进行验证,以确认其在 Windchill 中为可信任主机并下载要建立索引的文档内容。