I'd use the suggester:
http://wiki.apache.org/solr/Suggester

The suggester can give a collation. The TermsComponent can't do that.
The suggester builds on top of the spellchecking infrastructure, so
should be easy to use if you're familiar with that.

Martijn

On 10 September 2011 08:37, Manish Bafna <manish.bafna...@gmail.com> wrote:
>
> Which is preferable? using TermsComponent or Facets for autosuggest?
>
> On Fri, Sep 9, 2011 at 10:33 PM, Chris Hostetter
> <hossman_luc...@fucit.org>wrote:
>
> >
> > : http://wiki.apache.org/solr/TermsComponent states that TermsComponent
> > will
> > : return frequencies from deleted documents too.
> > :
> > : Is there anyway to omit the deleted documents to get the frequencies.
> >
> > not really -- until a deleted document is expunged from segment merging,
> > they are still included in the term stats which is what the TermsComponent
> > looks at.
> >
> > If having 100% accurate term counts is really important to you, then you
> > can optimize after doing any updates on your index - but there is
> > obviously a performance tradeoff there.
> >
> >
> >
> > -Hoss
> >



--
Met vriendelijke groet,

Martijn van Groningen

Reply via email to