But its deprecated (??)

-Rupert

On Fri, Feb 6, 2009 at 11:51 AM, Otis Gospodnetic
<otis_gospodne...@yahoo.com> wrote:
> Rupert,
>
> You could use the SpellCheck*Handler* to achieve this.
>
>
> Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
>
>
>
>
> ________________________________
> From: Rupert Fiasco <rufia...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Friday, February 6, 2009 2:47:19 PM
> Subject: Issuing just a spell check query
>
> The docs for the SpellCheckComponent say
>
> "The SpellCheckComponent is designed to provide inline spell checking
> of queries without having to issue separate requests."
>
> I would like to issue just a spell check query, I dont care about it
> being inline and piggy-backing off a normal search query.
>
> How would I achieve this?
>
> I tried monkeying with making a new requestHandler but using class =
> "solr.SearchHandler" always tries to do a normal search.
>
> I succeeded in adding inline spell checking to the default request
> handler by *adding*
>
>     <arr name="last-components">
>       <str>spellcheck</str>
>     </arr>
>
> to its requestHandler config - I would like to *remove* the default
> search component - maybe by making a new request handler which just
> does spell checking?
>
> Is something like this possible?
>
>
>
>  <requestHandler name="/spellcheck" class="solr.SearchHandler">
>    <!-- default values for query parameters -->
>     <lst name="defaults">
>        <str name="spellcheck.count">5</str>
>     </lst>
>
>     <arr name="first-components">
>       <str>spellcheck</str>
>     </arr>
>
>     <!-- remove default search component -->
>     <arr name="remove-components">
>       <str>default</str>
>     </arr>
>
>  </requestHandler>
>
>
>
>
>
> Now, I can sort of achieve what I want by in fact a normal search but
> then using a dummy value for my "q" parameter (for me "00000000000000"
> works) and then I get no search docs back, but I do get the spell
> suggestions I want, driven by the "spellcheck.q" parameter.
>
> But this seems very hacky and Solr is still having to run a search
> against my dummy value.
>
> A roundabout way of asking: how can I fire off *just* a spell check query?
>
> Thanks in advance
> -Rupert
>

Reply via email to