Edit or Paste Solr Parameters in the Query Form

Type or paste, the form fills itself

Edit or paste the parameters

Parameters sent to Solr, beside the query form, is not only a preview: type in it, or paste a query you already have, from your Solr log, your code or a URL, and the form fills itself.

01 · Steps

  1. In the Query tab of Solr Admin, find Parameters sent to Solr, to the right of the form. It holds what the form sends now.
  2. Change a line in it, or replace all of it with your parameters.
  3. As you type, the parameters are checked and the form is filled with them. A mistake shows under the box, and the form stays as it was.
  4. Click Execute Query.

The other way works too: what you change in the form shows in the box at once.

A Solr log line... params={q=*:*&fq=...}A query string or URL?q=*:*&rows=10&fq=...One per lineq=*:* fq=type:pageChecknames, repeatsfixed valuesThe formq*:*fqtype:pagerows10A mistake: the message shows, the form stays as it was A Solr log line... params={q=*:*&fq=...}A query string or URL?q=*:*&rows=10&fq=...One per lineq=*:* fq=type:pageChecknames, repeats, fixed valuesThe formq*:*fqtype:pagerows10A mistake: the message shows,the form stays as it was.
Paste, check, form. Then Execute Query.

02 · What you can paste

A query string, exactly as your Solr log shows it, on one line, with spaces, quotes and backslashes as they are:

?q=*:*&defType=edismax&fl=* score&fq=type:"page"&fq=locale_s:en&sort=score desc, date desc&rows=10

A whole line from the Solr log: only what is inside params={...} is used.

... webapp=/solr path=/select params={q=title:solr&fq=locale_s:en&rows=10} hits=42 status=0 QTime=3

A URL or an encoded query string: the address before ? is ignored and %3A, + and the rest are decoded.

https://HOST/solr/INDEX/select?q=title%3Asolr&rows=10

One name=value per line, as Parameters sent to Solr shows them. A line that does not start with name= continues the value above it, so a value can span several lines, such as a json.facet.

q=title:solr
fq=locale_s:en
fq=type:page
rows=10

An & inside a value stays in the value: q=AT&T is read as one parameter.

03 · The check

  • Every name must start with a letter and use only letters, digits, _ and ..
  • Parameters that take several values, such as fq or facet.field, may repeat; each one becomes a line of the field. Any other parameter given twice is a mistake.
  • wt=json and expandMacros=false are skipped, because the form always sends them; any other value for them is a mistake.
  • timeAllowed=15000, which the box shows when the form has no timeAllowed of its own, is not kept as a field.
  • On a mistake, the message says what is wrong and the form stays as it was.
  • When the check passes, the form is emptied and filled with what you pasted: defType and the other known parameters get their own fields, any other name becomes a custom parameter.

The parameters the form does not accept are refused when you run the query: Query limits.

Solr Admin pages