You're other option is to just add the component to your normal request handler (i.e. select). That was the main goal of writing it as a SearchComponent. This way, you don't have to do a separate query to get spelling results.

Just mimic the configuration for the spellCheckCompRH in the handler that you use for querying.


On Sep 24, 2008, at 3:43 PM, Erik Hatcher wrote:


On Sep 24, 2008, at 3:22 PM, Jason Rennie wrote:
I've got SpellCheckComponent working on my index using queries like so:

/solr/spellCheckCompRH? q=shart&spellcheck.q=shart&spellcheck=true&qt=sfdismax

But, I haven't had any luck getting solrj to produce such queries. I can't find any way to change the url from /solr/select to /solr/ spellCheckCompRH.

I found a post from a month ago indicating that it can be done. Can someone
fill me in on what I'm missing?

SolrQuery query = new SolrQuery("shart")
query.setQueryType("/spellCheckCompRH")

        Erik




Reply via email to