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 "R. Tan" <ta...@gmail.com> on 2009/10/07 12:17:52 UTC

SpellCheck with filter/conditions

Sorry, newbie here, figured it out.

How do you get spelling suggestions on a specific resultset, filtered by a
certain facet for example?


On Wed, Oct 7, 2009 at 8:43 AM, R. Tan <ta...@gmail.com> wrote:

> Nice. In comparison, how do you do it with faceting?
>
>> "Two other approaches are to use either the TermsComponent (new in Solr
>> 1.4) or faceting."
>
>
>
> On Wed, Oct 7, 2009 at 1:51 AM, Jay Hill <ja...@gmail.com> wrote:
>
>> Have a look at a blog I posted on how to use EdgeNGrams to build an
>> auto-suggest tool:
>>
>> http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/
>>
>> You could easily add filter queries to this approach. Ffor example, the
>> query used in the blog could add filter queries like this:
>>
>> http://localhost:8983/solr/select/?q=user_query:
>> ā€iā€&wt=json&fl=user_query&indent=on&echoParams=none&rows=10&sort=count
>> desc&fq=yourField:yourQuery&fq=anotherField:anotherQuery
>>
>> -Jay
>> http://www.lucidimagination.com
>>
>>
>>
>>
>> On Tue, Oct 6, 2009 at 4:40 AM, R. Tan <ta...@gmail.com> wrote:
>>
>> > Hello,
>> > What's the best way to get auto-suggested terms/keywords that is
>> filtered
>> > by
>> > one or more fields? TermsComponent should have been the solution but
>> > filters
>> > are not supported.
>> >
>> > Thanks,
>> > Rihaed
>> >
>>
>
>