Solr --- Group查询与Facet区别
来源:互联网 发布:windows的字体文件夹 编辑:程序博客网 时间:2024/06/05 05:51
简介
facet的查询结果主要是分组信息:有什么分组,每个分组包括多少记录;但是分组中有哪些数据是不可知道的,只有进一步搜索。
group则类似于关系数据库的group by,可以用于一个或者几个字段去重、显示一个group的前几条记录等。
来自solr ref guide的解释:
Result Grouping groups documents with a common field value into groups and returns the top documents for
each group.
Result Grouping is separate from Faceting. Though it is conceptually similar, faceting returns all relevant results
and allows the user to refine the results based on the facet category. For example, if you search for “shoes” on a
footwear retailer’s e-commerce site, Solr would return all results for that query term, along with selectable facets
such as “size,” “color,” “brand,” and so on.
Facet查询举例
查询语法:
http://localhost:8080/solr/JobsOtherWeb0/select?q=jobsName%3A%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BB%B4%E6%8A%A4&facet=true&facet.field=salary&facet.field=publishDate&facet.field=educateBackground&facet.field=jobExperience&facet.field=companytype&facet.field=jobsType&facet.limit=10&facet.missing=false&facet.mincount=1
查询结果是根据主查询条件得出的。facet是聚类后的信息,跟查询条件是分开的,查询结果跟facet没关系。
查询结果:
Group查询举例
查询语法:
http://localhost:8080/solr/JobsOtherWeb0/select?q=jobsName%3A%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BB%B4%E6%8A%A4&group=true&group.field=salary&group.limit=1&rows=10
查询条件跟group相关的,返回的查询结果跟group也是相关的,group中有相关文档的详细信息。
查询结果:
- Solr --- Group查询与Facet区别
- Solr中的group与facet的区别
- solr的group和facet
- solr的facet查询
- solr的facet查询
- solr的facet查询
- Solr Facet 查询
- solr的facet查询
- Solr --- Facet查询
- solr的facet查询
- Solr Facet 统计查询
- Solr之分组查询facet
- solr的facet查询(转载)
- solr中facet和group的使用
- Solr中Facet用法和Group用法
- solr group分组查询
- solr group分组查询
- Solr --- Group查询
- mybatis 提示The content of elements must consist of well-formed character data or markup
- hdu 5139(离线处理)
- MSComm32控制的使用
- sublime text 3 快捷键大全
- 熊先生做原型之:简单、粗暴、有效
- Solr --- Group查询与Facet区别
- ABAP SMARTFORMS字段不显示 与脚标换页报错TEMPLDATE 不适合窗口宽度
- context集锦
- red hat 6.5 Linux.6.5 安装yum
- 深入理解IOC模式及Unity框架
- An asset is marked with HideFlags.DontSave but is included in the build
- [笔记丶设计模式]2. 如何学习设计模式
- a标签里面嵌套一个a标签,点击子链接标签时,同时触发了父标签a
- DateTranslator源码解析