Solr参数(QueryElevation Shard Spatial Spelling)

一.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 <b>optional</b>. 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.

你可能感兴趣的:(query)