solr笔记 博客分类: solr facetsolr
程序员文章站
2024-03-18 20:29:28
...
“Pretty” facet.field Terms
§ Field Faceting uses Indexed Terms
§ Leverage copyField and TokenFilters that will
give you good looking Constraints
<tokenizer
class="solr.PaPernTokenizerFactory"
paPern="(,|;)\s*"
/>
<filter
class="solr.PaPernReplaceFilterFactory"
paPern="\s+"
replacement="
"
/>
<filter
class="solr.PaPernReplaceFilterFactory"
paPern="
and
"
replacement="
&
"
/>
<filter
class="solr.TrimFilterFactory"
/>
<filter
class="solr.CapitalizaConFilterFactory"
onlyFirstWord="false"
/>
“Pretty” facet.field Results
{“id” : “MyExampleDoc”,!
"category” : ” books !
and magazines; !
computers, “!
}!
copyField
in schema
<copyField “source”=“category” “dest”=“category_pretty”/>
"facet_counts":{!
"facet_fields":{!
"category_pretty":[!
"Books & Magazines",1,!
"Computers",1]
§ Field Faceting uses Indexed Terms
§ Leverage copyField and TokenFilters that will
give you good looking Constraints
<tokenizer
class="solr.PaPernTokenizerFactory"
paPern="(,|;)\s*"
/>
<filter
class="solr.PaPernReplaceFilterFactory"
paPern="\s+"
replacement="
"
/>
<filter
class="solr.PaPernReplaceFilterFactory"
paPern="
and
"
replacement="
&
"
/>
<filter
class="solr.TrimFilterFactory"
/>
<filter
class="solr.CapitalizaConFilterFactory"
onlyFirstWord="false"
/>
“Pretty” facet.field Results
{“id” : “MyExampleDoc”,!
"category” : ” books !
and magazines; !
computers, “!
}!
copyField
in schema
<copyField “source”=“category” “dest”=“category_pretty”/>
"facet_counts":{!
"facet_fields":{!
"category_pretty":[!
"Books & Magazines",1,!
"Computers",1]
推荐阅读
-
solr笔记 博客分类: solr facetsolr
-
跟益达学Solr5之Facet一瞥 博客分类: Solr SolrFacet
-
solr的facet源码解读(三)——facet.field之数字单值域类型 博客分类: solrlucene lucenesolrfacet数字类型
-
solrCloud源码分析之CloudSolrClient 博客分类: solr
-
Solr/Lucene使用docValue查询的一个坑 博客分类: solr搜索 solrlucenedocvalue
-
Solr相关知识点串讲 博客分类: solr
-
Elasticsearch Guide 博客分类: solr
-
solr(lucene)的reRank的核心实现源码解读 博客分类: solrlucene lucenesolrrerank
-
solr下载地址 博客分类: solr
-
HTTP请求中浏览器的缓存机制(转) 博客分类: 笔记 httpExpirescache