有人有使用SOLR的Sitecore索引配置和关键字分词器的示例吗?我想在一个包含多个单词字符串的字段上进行面向内容的筛选,但是目前返回的聚合值正在将字段中的单词拆分并返回。
例如,我有一些具有州字段的项目,并且我正在尝试在该州字段上进行面向内容的筛选,其中该字段具有类似于新罕布什尔州、南达科他州等值。但是在结果中,我得到了以下聚合值:
名称=新, 聚合=xx
名称=罕布什尔, 聚合=xx
名称=南, 聚合=xx
名称=达科他, 聚合=xx
请问有谁能帮我更改正确的配置呢?
这是我的当前配置:
<index id="site_search_web_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<param desc="name">$(id)</param>
<param desc="core">site_search_web</param>
<param desc="propertyStore" ref="contentSearch/databasePropertyStore" param1="$(id)" />
<strategies hint="list:AddStrategy">
<strategy ref="contentSearch/indexUpdateStrategies/onPublishEndAsync" />
</strategies>
<locations hint="list:AddCrawler">
<crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
<Database>web</Database>
<Root>/sitecore/content/Home</Root>
</crawler>
</locations>
</index>