简体   繁体   English

使用SolrJ获取查询的查询(搜索处理程序)配置

[英]Get query(search handler) configuration for a query using SolrJ

Is it possible to get the query configuration values(default + request parameters) using SolrJ ? 是否可以使用SolrJ获取查询配置值(默认+请求参数)?

For example: If I direct a request to the RequestHandler using SolrJ, I would like to get a list of parameters(default + overridden request parameters) used on the query. 例如:如果我使用SolrJ将请求定向到RequestHandler,我想获取查询中使用的参数列表(默认+重写的请求参数)。 I need this to log the current configuration when the query was made. 进行查询时,我需要此日志来记录当前配置。

Try adding the parameter echoParams=all . 尝试添加参数echoParams=all

The echoParams parameter tells Solr what kinds of Request parameters should be included in the response for debugging purposes, legal values include: echoParams参数告诉Solr为调试目的应在响应中包括哪种Request参数,合法值包括:

  • none - don't include any request parameters for debugging 无-不包含任何用于调试的请求参数
  • explicit - include the parameters explicitly specified by the client in the request 显式-在请求中包含客户端显式指定的参数
  • all - include all parameters involved in this request, either specified explicitly by the client, or implicit because of the request handler configuration. all-包括此请求中涉及的所有参数,这些参数要么由客户端明确指定,要么由于请求处理程序配置而隐式指定。

Take a look at Common Query Parameters 看一下通用查询参数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM