我发现approot和sitesroot用于:
\ Approot - 客户的代码,aspx页面,DLL等\ Sitesroot\ - 这是运行完整IIS站点的文件夹.部署角色后,\ Approot中的文件将复制到此\ Sitesroot文件夹,然后IIS将配置为从\ Sitesroot运行该站点.应该在此处放置对角色的任何临时测试更改(web.config更改,新DLL等).
我想知道为什么有两个sparate文件夹,因为它们包含相同的文件?
如何在Chef recipe(ruby)中获取节点搜索返回的IP地址.
dbnodes = search(:node, "role:Db")
Chef::Log.info(dbnodes.first["ipaddress"]) # nil
Run Code Online (Sandbox Code Playgroud)
几周前,这段代码从搜索API返回了第一个IP的IP.
版本:厨师:10.14.2
我的Solr索引中有下一个内容:
west indian cherry在类型text_en的字段中(参见下面的字段定义).
当我搜索cherr*匹配时找到.
还搜索cherri*文档中的匹配单词.
但是,搜索cherry*并没有匹配.
我怀疑PorterStemFilterFactory这个,但我不明白为什么(查询分析器与索引分析器相同).
/solr/select?defType=edismax&q=cherry*
Run Code Online (Sandbox Code Playgroud)
...
<fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EnglishPossessiveFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EnglishPossessiveFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/>
</analyzer>
</fieldType>
...
Run Code Online (Sandbox Code Playgroud)
org.apache.solr.analysis.StandardTokenizerFactory: cherry
org.apache.solr.analysis.LowerCaseFilterFactory: cherry
org.apache.solr.analysis.EnglishPossessiveFilterFactory: cherry
org.apache.solr.analysis.PorterStemFilterFactory: cherri <-- note the change from cherry to cherri
Run Code Online (Sandbox Code Playgroud)
org.apache.solr.analysis.StandardTokenizerFactory: cherry
org.apache.solr.analysis.LowerCaseFilterFactory: cherry
org.apache.solr.analysis.EnglishPossessiveFilterFactory: cherry
org.apache.solr.analysis.PorterStemFilterFactory: cherri
Run Code Online (Sandbox Code Playgroud)