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 Bing Hua <bh...@cornell.edu> on 2012/08/13 22:21:49 UTC

Getting Suggestions without Search Results

Hi,

I'm having a spell check component that does auto-complete suggestions. It
is part of "last-components" of my /select search handler. So apart from
normal search results I also get a list of suggestions.

Now I want to split things up. Is there a way that I can only get
suggestions of a query without getting the normal search results? I may need
to create a new handler for this. Can anyone please give me some ideas on
that?

Thanks,
Bing



--
View this message in context: http://lucene.472066.n3.nabble.com/Getting-Suggestions-without-Search-Results-tp4000968.html
Sent from the Solr - User mailing list archive at Nabble.com.

RE: Getting Suggestions without Search Results

Posted by Markus Jelsma <ma...@openindex.io>.
I haven't tried it but i'd try to use spellcheck.q as input and specifiy the spellcheck component in the components section, not the last-components section because components because it has (iirc) the five default components, query, debug, mlt, highlighter and facet.
 
 
-----Original message-----
> From:Michael Della Bitta <mi...@appinions.com>
> Sent: Mon 13-Aug-2012 22:33
> To: solr-user@lucene.apache.org
> Subject: Re: Getting Suggestions without Search Results
> 
> Does querying with rows=0 work?
> 
> Michael Della Bitta
> 
> ------------------------------------------------
> Appinions | 18 East 41st St., Suite 1806 | New York, NY 10017
> www.appinions.com
> Where Influence Isn’t a Game
> 
> 
> On Mon, Aug 13, 2012 at 4:21 PM, Bing Hua <bh...@cornell.edu> wrote:
> >
> >
> > Now I want to split things up. Is there a way that I can only
> 

Re: Getting Suggestions without Search Results

Posted by Michael Della Bitta <mi...@appinions.com>.
Does querying with rows=0 work?

Michael Della Bitta

------------------------------------------------
Appinions | 18 East 41st St., Suite 1806 | New York, NY 10017
www.appinions.com
Where Influence Isn’t a Game


On Mon, Aug 13, 2012 at 4:21 PM, Bing Hua <bh...@cornell.edu> wrote:
>
>
> Now I want to split things up. Is there a way that I can only

Re: Getting Suggestions without Search Results

Posted by Bing Hua <bh...@cornell.edu>.
Great comments. Thanks to you all.
Bing



--
View this message in context: http://lucene.472066.n3.nabble.com/Getting-Suggestions-without-Search-Results-tp4000968p4001192.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Getting Suggestions without Search Results

Posted by Ahmet Arslan <io...@yahoo.com>.
> Now I want to split things up. Is there a way that I can
> only get
> suggestions of a query without getting the normal search
> results? I may need
> to create a new handler for this. Can anyone please give me
> some ideas on
> that?

Appending &query=false disables QueryComponent. I am not sure id spellcheck component uses/needs results of QueryComponent. For example FacetComponent uses/needs results of QueryComponent.