You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jay Fisher <ja...@gmail.com> on 2010/01/03 06:31:59 UTC

solrJ and spell check queries

I'm trying to find a way to formulate the following query in solrJ. This is
the only way I can get the desired result but I can't figure out how to get
solrJ to generate the same query string. It always generates a url that
starts with select and I need it to start with spell. If there is an
alternative url string that will work please let me know.

http://solr-server/spell/?indent=on&q=shert&wt=json&spellcheck=true&spellcheck.collate=true

Re: solrJ and spell check queries

Posted by Jay Fisher <ja...@gmail.com>.
Thank you. That did it.

~ Jay

On Sun, Jan 3, 2010 at 7:21 AM, Sascha Szott <sz...@zib.de> wrote:

> Hi,
>
>
> Jay Fisher wrote:
>
>> I'm trying to find a way to formulate the following query in solrJ. This
>> is
>> the only way I can get the desired result but I can't figure out how to
>> get
>> solrJ to generate the same query string. It always generates a url that
>> starts with select and I need it to start with spell. If there is an
>> alternative url string that will work please let me know.
>>
>>
>> http://solr-server/spell/?indent=on&q=shert&wt=json&spellcheck=true&spellcheck.collate=true
>>
>>  In case you hook SpellCheckComponent directly into the standard request
> handler, i.e., /select,
>
>
> http://solr-server/select?indent=on&q=shert&wt=json&spellcheck=true&spellcheck.collate=true
>
> should work.
>
> -Sascha
>
>
>

Re: solrJ and spell check queries

Posted by Sascha Szott <sz...@zib.de>.
Hi,

Jay Fisher wrote:
> I'm trying to find a way to formulate the following query in solrJ. This is
> the only way I can get the desired result but I can't figure out how to get
> solrJ to generate the same query string. It always generates a url that
> starts with select and I need it to start with spell. If there is an
> alternative url string that will work please let me know.
>
> http://solr-server/spell/?indent=on&q=shert&wt=json&spellcheck=true&spellcheck.collate=true
>
In case you hook SpellCheckComponent directly into the standard request 
handler, i.e., /select,

http://solr-server/select?indent=on&q=shert&wt=json&spellcheck=true&spellcheck.collate=true

should work.

-Sascha