You can do it without NGram with a query like this : http://localhost:8983/solr/terms?terms=true&terms.fl=suggestionField&terms.regex=(.*)chest(.*)&terms.regex.flag=case_insensitive In my case, I had to encode (.*) so replace it with %28.*%29 if needed. It use a regex. I don't know if it has an impact on performance. 2011/4/29 lboutros <boutr...@gmail.com>
> you could use EdgeNGramFilterFactory : > > > http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.EdgeNGramFilterFactory > > And you should mix front and back ngram process in your analyzer : > > <filter class="solr.EdgeNGramFilterFactory" minGramSize="2" > maxGramSize="15" > side="front"/> > <filter class="solr.EdgeNGramFilterFactory" minGramSize="2" > maxGramSize="15" > side="back"/> > > is it better ? > > Ludovic. > -----Jouve > France.-- > View this message in context: > http://lucene.472066.n3.nabble.com/Autocomplete-terms-middle-of-words-tp2878694p2878891.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- ---------------------------------------------------------------- Quentin Proust Email : q.pro...@gmail.com Tel : 06.78.81.15.94 http://www.linkedin.com/in/quentinproust ----------------------------------------------------------------