lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Rochkind <>
Subject RE: Array of arguments in URL?
Date Wed, 02 Jun 2010 13:53:09 GMT
You CAN easily turn spellchecking on or off, or set the spellcheck dictionary, in request parameters.
 So there's really no need, that I can think of,  to try to actually add or remove the spellcheck
component in request parameters; you could just leave it turned off in your default parameters,
but turn it on in request parameters when you want it.  With &spellcheck=true&spellcheck.dictionary=whatever.

But I suspect you weren't really asking about spellcheck component, but in general, or perhaps
for some other specific purpose? I don't think there's any "general" way to pass an array
to request parameters. Request parameters that take list-like data structures tend to use
whitespace to seperate the elements instead, to allow you to pass them as request parameters.
For instance dismax df, pf, etc fields, elements ordinarily seperated by newlines when seen
in a solrconfig.xml as default params, can also be seperated simply by spaces in an actual
URL too. (newlines in the URL might work too, never tried it, spaces more convenient for an
actual URL). 
From: Grant Ingersoll [] On Behalf Of Grant Ingersoll []
Sent: Wednesday, June 02, 2010 6:28 AM
Subject: Re: Array of arguments in URL?

Those aren't in the default parameters.  They are config for the SearchHandler itself.

On Jun 1, 2010, at 9:00 PM, Lance Norskog wrote:

> In the "/spell" declaration in the example solrconfig.xml, we find
> these lines among the default parameters:
>    <arr name="last-components">
>      <str>spellcheck</str>
>    </arr>
> How does one supply such an array of strings in HTTP parameters? Does
> Solr have a parsing option for this?
> --
> Lance Norskog

View raw message