Something like this, building on each character typed:

&facet=on&facet.field=tc_query&facet.prefix=be&facet.mincount=1

-Jay
http://www.lucidimagination.com


On Tue, Oct 6, 2009 at 5:43 PM, R. Tan <tanrihae...@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 <jayallenh...@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 <tanrihae...@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
> > >
> >
>

Reply via email to