参数说明
参数名 |
参数值 |
说明 |
group |
true/false |
if true, turn on result grouping(如果为true,结果分组) |
group.field |
[fieldname] |
Group based on the unique values of a field. The field must currently be single-valued and must be either indexed, or be another field type that has a value source and works in a function query - such as ExternalFileField. Note: for Solr 3.x versions the field must by a string like field such as StrField or TextField, otherwise a http status 400 is returned. (分组基于值域(field)唯一值来实现。该字段必须是单值的,必须是索引的。或者是另一种值域:有值源,而且工作在函数查询下,比如说扩展值域。注意:solr 3.x版本,值域的类型必须为string类型,比如StrField or TextField) |
group.func |
[function query] |
Group based on the unique values of a function query. Solr4.0 This parameter only is supported on 4.0 (分组基于函数查询的唯一值。solr4.0以后才支持) |
group.query |
[query] |
Return a single group of documents that also match the given query. (返回一个匹配搜索的单个文档组,) |
rows |
[number] |
The number of groups to return. Defaults to 10. 返回的群组个数,默认是10 |
start |
[number] |
The offset into the list of groups. (该群列表中的偏移量) |
group.limit |
[number] |
The number of results (documents) to return for each group. Defaults to 1. (每个群组返回的结果数,默认是1) |
group.offset |
[number] |
The offset into the document list of each group. (每个群组的偏移量) |
sort |
[sortspec] |
How to sort the groups relative to each other. For example, sort=popularity desc will cause the groups to be sorted according to the highest popularity doc in each group. Defaults to "score desc". (怎么对群组排序,例如:sort=popularity desc会使群组按照 popularity的值降序排序,默认是"score desc") |
group.sort |
[sortspec] |
How to sort documents within a single group. Defaults to the same value as the sort parameter. (单个群组内怎样排序,默认是和sort参数一样) |
group.format |
grouped/simple |
if simple, the grouped documents are presented in a single flat list. The start and rows parameters refer to numbers of documents instead of numbers of groups. (如果值是simple,分组后的文档记录是单一的平面列表。 start and rows指的是文档记录的数量,而不是群组的数量) |
group.main |
true/false |
If true, the result of the last field grouping command is used as the main result list in the response, using group.format=simple (如果为true,最后一个值域的分组命令的结果,被作为主要的结果列表,需要 group.format=simple)(不懂) |
group.ngroups |
true/false |
If true, includes the number of groups that have matched the query. Default is false. Solr4.1 (如果为true,包括匹配查询的分组数。默认是false.警告,如果是在一个分布式环境里,这个参数设置为true,所有的文件,属于同一组必须位于相同的分片,否则计数将不正确。如果你使用SolrCloud,考虑自定义"custom hashing") |
group.truncate |
true/false |
If true, facet counts are based on the most relevant document of each group matching the query. Same applies for StatsComponent. Default is false. Solr3.4 Supported from Solr 3.4 and up. (如果值为true,facet 总数是基于每组最相关的记录,和StatsComponent功能一样,默认是false) |
group.facet |
true/false |
Whether to compute grouped facets for the field facets specified in facet.field parameters. Grouped facets are computed based on the first specified group. Just like normal field faceting, fields shouldn't be tokenized (otherwise counts are computed for each token). Grouped faceting supports single and multivalued fields. Default is false. Solr4.0 |
group.cache.percent |
[0-100] |
If > 0 enables grouping cache. Grouping is executed actual two searches. This option caches the second search. A value of 0 disables grouping caching. Default is 0. Tests have shown that this cache only improves search time with boolean queries, wildcard queries and fuzzy queries. For simple queries like a term query or a match all query this cache has a negative impact on performance |
相关推荐
solr安装和使用
Solr5安装部署说明
solr的安装使用步骤
少有的solr中文文档,详细说明了SOLR的文件配置,使用。
Solr(Cloudera)使用手册
lucene,solr的使用lucene,solr的使用lucene,solr的使用lucene,solr的使用lucene,solr的使用lucene,solr的使用lucene,solr的使用lucene,solr的使用lucene,solr的使用lucene,solr的使用lucene,solr的使用
solr中文解析器以及使用文档,配合blog使用
solr中文分词器
用于solr6.5的IK分词包,内含使用说明及配置文件
solr中Cache综述 以及部分优化策略
Solr是一个独立的企业级搜索应用服务器,它对外提供类似于Web-service的API接口。用户可以通过http请求,向搜索引擎服务器提交一定格式的XML文件,生成索引;也可以通过Http Get操作提出查找请求,并得到XML格式的...
centos7 环境 安装docker 并在docker 中部署solr 并使用
solr 中文分词
4.2 Solrj的使用说明 47 4.2.1 Adding Data to Solr 47 4.2.2 Directly adding POJOs to Solr 49 4.2.3 Reading Data from Solr 51 4.3 创建查询 51 4.4 使用 SolrJ 创建索引 52 4.5 Solrj包的结构说明 53 4.5.1 ...
solr5.4.0以上使用的apache-solr-dataimportscheduler
solr定时索引使用到的定时调度器jar包, 可使用于solr7.x版本
solr6.0的中文分词也支持solr5.x,IKAnalyzer.jar和配置文件
简单的描绘了使用easynet开发solr客户端,包括添加,修改,删除,查询功能。
solr.warsolr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包...