Does adding the shingle filter factory have to be done before or after indexing?
Dennis Gearon Signature Warning ---------------- EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php --- On Sat, 10/2/10, Ahmet Arslan <iori...@yahoo.com> wrote: > From: Ahmet Arslan <iori...@yahoo.com> > Subject: Re: Autosuggest with inner phrases > To: solr-user@lucene.apache.org > Date: Saturday, October 2, 2010, 5:10 AM > > Hi , > > I implemented the auto suggest using terms > component.But > > the suggestions are > > coming from the starting of the word.But i want inner > > phrases also.For > > example, if I type "bass" Auto-Complete should offer > > suggestions that > > include "bass fishing" or "bass guitar", and even > > "sea bass" (note how > > "bass" is not necessarily the first word). > > > > How can i achieve this using solr's terms component. > > > You can add ShingleFilterFactory to your field type > definition. > > http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.ShingleFilterFactory > > > >