lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Autosuggest with inner phrases
Date Sat, 02 Oct 2010 12:10:00 GMT
> 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


      

Mime
View raw message