Solr参数(Group Highlight MoreLikeThis)

本文深入探讨了Elasticsearch中的Group By功能,包括其参数设置、使用场景和最佳实践,帮助开发者更高效地进行数据聚合操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一.Group

1.group.query
2.group.field
3.group.func
4.group.sort
5.group.limit:the limit for the number of documents in each group
6.group.offset:the offset for the doclist of each group
7.group.main:treat the first group result as the main result.  true/false
8.group.format:treat the first group result as the main result.  true/false
9.group.cache.percent:Whether to cache the first pass search (doc ids and score) for the second pass search.Also defines the maximum size of the group cache relative to maxdoc in a percentage.Values can be a positive integer, from 0 till 100. A value of 0 will disable the group cache.The default is 0.
10.group.truncate:Note: Since you can supply multiple fields to group on, but only have a facets for the whole result. It only makes sense to me to support these parameters for the first group.Whether the docSet (for example for faceting) should be based on plain documents (a.k.a UNGROUPED) or on the groups (a.k.a GROUPED).The docSet will only the most relevant documents per group. It is if you query for everything with group.limit=1
11.group.ngroups:Whether the group count should be included in the response
12.group.facet:Whether to compute grouped facets based on the first specified group
13.group.distributed.first:Retrieve the top search groups (top group values) from the shards being queried
14.group.distributed.second:Retrieve the top groups from the shards being queries based on the specified search groups in the GROUP_DISTRIBUTED_TOPGROUPS_PREFIX parameters
15.group.topgroups.

二.Highlight

1.hl
2.hl.q
3.hl.fl
4.hl.snippets
5.hl.fragsize
6.hl.increment
7.hl.maxAnalyzedChars
8.hl.formatter
9.hl.encoder
10.hl.fragmenter
11.hl.fragListBuilder
12.hl.fragmentsBuilder
13.hl.boundaryScanner
14.hl.bs.maxScan
15.hl.bs.chars
16.hl.bs.type
17.hl.bs.language
18.hl.bs.country
19.hl.requireFieldMatch
20.hl.alternateField
21.hl.maxAlternateFieldLength
22.hl.usePhraseHighlighter
23.hl.highlightMultiTerm
24.hl..mergeContiguous
25.hl.useFastVectorHighlighter
26.hl.tag.pre
27.hl.tag.post
28.hl.phraseLimit
29.hl.multiValuedSeparatorChar
30.hl.simple.pre
31.hl.simple.post
32.hl.regex.slop
33.hl.regex.pattern
34.hl.regex.maxAnalyzedChars

三.MoreLikeThis

1.mlt:enable more like this -- this only applies to 'StandardRequestHandler' maybe DismaxRequestHandler
2.mlt.fl
3.mlt.mintf
4.mlt.mindf
5.mlt.minwl
6.mlt.maxwl
7.mlt.maxqt
8.mlt.maxntp
9.mlt.boost:boost or not?
10.mlt.qf:boosting applied to mlt fields
11.mlt.count:the /mlt request handler uses 'rows'
12.mlt.match.include: Do you want to include the original document in the results or not
13.mlt.match.offset:If multiple docs are matched in the query, what offset do you want?
14.mlt.interestingTerms:false,details,(list or true)

转载于:https://www.cnblogs.com/TerryLiang/archive/2012/08/30/2664489.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值