On Sat, Feb 7, 2009 at 1:17 AM, Rupert Fiasco <rufia...@gmail.com> wrote:
> > 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? > > 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? I don't think it is possible with SpellCheckComponent. But note that only the first search pays the price, if you don't change (q, sort, rows, count) then subsequent queries hit the cache. So I'd suggest you search for a dummy value (or *:*), make fl=<your_unique_key> (for minimal payload) and ignore the documents returned. -- Regards, Shalin Shekhar Mangar.