> 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