设为首页 收藏本站
查看: 504|回复: 0

[经验分享] Solr参数(QueryElevation Shard Spatial Spelling)

[复制链接]

尚未签到

发表于 2015-7-17 10:55:23 | 显示全部楼层 |阅读模式
  一.QueryElevation
  1.enableElevation
2.exclusive
3.forceElevation
4.editorialMarkerFieldName:The name of the field that editorial results will be written out as when using the QueryElevationComponent, which automatically configures the EditorialMarkerFactory.  The default name is "elevated"
5.excludeMarkerFieldName:The name of the field that excluded editorial results will be written out as when using the QueryElevationComponent, which automatically configures the EditorialMarkerFactory.  The default name is "excluded".  This is only used when MARK_EXCLUDES is set to true at query time.
6.markExcludes:Instead of removing excluded items from the results, passing in this parameter allows you to get back the excluded items, but to mark them as excluded.
  二.Shard
  1.shards:the shards to use (distributed configuration)
2.shards.rows:per-shard start and rows
3.shards.start
4.ids:IDs of the shard documents
5.isShard:whether the request goes to a shard
6.shard.url:The requested URL for this shard
7.shards.qt:The Request Handler for shard requests
8.shards.info:Request detailed match info for each shard (true/false)
9.shards.tolerant:Should things fail if there is an error? (true/false)
  三.Spatial
  1.pt
2.d
3.sfield:the field that contains the points we are measuring from "pt"
4.units:km - kilometers,mi - miles
5.meas:The distance measure to use
6.sphere_radius:The radius of the sphere to use to in calculating spherical distances like Haversine
  四.Spelling
  1.spellcheck.dictionary:The name of the dictionary to be used for giving the suggestion for a request. The value for this parameter is configured in solrconfig.xml
2.spellcheck.count:The count of suggestions to return for each query term not in the index and/or dictionary.If this parameter is absent in the request then only one suggestion is returned. If it is more than one then a maximum of given suggestions are returned for each token in the query.
3.spellcheck.alternativeTermCount:The count of suggestions to return for each query term existing in the index and/or dictionary.If this parameter is absent in the request then no suggestions are generated.  This parameter allows for receiving alternative terms to use in context-sensitive spelling corrections.
4.spellcheck.maxResultsForSuggest:The maximum number of hits the request can return in order to both generate spelling suggestions and set the "correctlySpelled" element to "false". Note that this parameter is typically of use only in conjunction with "spellcheck.alternativeTermCount". If left unspecified, the default behavior will prevail.  That is, "correctlySpelled" will be false and suggestions will be returned only if one or more of the query terms are absent from the dictionary and/or index.  If set to zero,the "correctlySpelled" flag will be false only if the response returns zero hits.  If set to a value greater than zero,suggestions will be returned even if hits are returned (up to the specified number).  This number also will serve as the threshold in determining the value of "correctlySpelled".  Specifying a value greater than zero is useful for creating "did-you-mean" suggestions for queries that return a low number of hits.
5.spellcheck.onlyMorePopular:When this parameter is set to true and the misspelled word exists in the user field, only words that occur more frequently in the Solr field than the one given will be returned. The default value is false.This is applicable only for dictionaries built from Solr fields.
6.spellcheck.extendedResults:Whether to use the extended response format, which is more complicated but richer. Returns the document frequency for each suggestion and returns one suggestion block for each term in the query string. Default is false. This is applicable only for dictionaries built from Solr fields.
7.spellcheck.q:Use the value for this parameter as the query to spell check.This parameter is optional. If absent, then the q parameter is used
8.spellcheck.build:Whether to build the index or not. Optional and false by default
9.spellcheck.reload:Whether to reload the index. Optional and false by default
10.spellcheck.collate:Take the top suggestion for each token and create a new query from it
11.spellcheck.maxCollations:The maximum number of collations to return.  Default=1.  Ignored if "spellcheck.collate" is false
12.spellcheck.maxCollationTries:The maximum number of collations to test by querying against the index.When testing, the collation is substituted for the original query's "q" param.  Any "qf"s are retained.If this is set to zero, does not test for hits before returning collations (returned collations may result in zero hits).Default=0. Ignored of "spellcheck.collate" is false.
13.spellcheck.maxCollationEvaluations:The maximum number of word correction combinations to rank and evaluate prior to deciding which collation candidates to test against the index.  This is a performance safety-net in cases a user enters a query with many misspelled words.  The default is 10,000 combinations.
14.spellcheck.collateExtendedResults:Whether to use the Extended Results Format for collations.Includes "before>after" pairs to easily allow clients to generate messages like "no results for PORK.  did you mean POLK?"Also indicates the # of hits each collation will return on re-query.  Default=false, which retains 1.4-compatible output.
15.spellcheck.collateParam.:For use with SpellingParams SPELLCHECK_MAX_COLLATION_TRIES, use this to override any original query parameters when issuing test queries.  For instance, if the original query has "mm=1" but it is preferred to test collations with "mm=100%", then use "spellcheck.collateParam.mm=100%".
16.spellcheck.accuracy:Certain spelling implementations may allow for an accuracy setting.

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-87596-1-1.html 上篇帖子: Solr设置高亮 下篇帖子: Solr拼写检查(spellCheck)配置和使用
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表