Hi Roy,

Try edge ngram instead.

See also: http://sematext.com/products/autocomplete/index.html (comes with a 
nice UI, a bunch of configurable things, etc.)


Otis
----

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/


----- Original Message -----
> From: roySolr <royrutten1...@gmail.com>
> To: solr-user@lucene.apache.org
> Cc: 
> Sent: Thursday, September 22, 2011 5:02 AM
> Subject: Re: Slow autocomplete(terms)
> 
> Hello Erick,
> 
> Thanks for your answer but i have some problems with the ngramfilter.
> 
> My conf look like this:
> 
> <fieldType name="autocomplete" class="solr.TextField"
> positionIncrementGap="100">
>       <analyzer type="index">
>         <tokenizer class="solr.KeywordTokenizerFactory"/>
>         <filter class="solr.LowerCaseFilterFactory"/>
>     <filter class="solr.NGramFilterFactory" 
> minGramSize="2" maxGramSize="8"/>
>       </analyzer>
>       <analyzer type="query">
>         <tokenizer class="solr.KeywordTokenizerFactory"/>
>         <filter class="solr.LowerCaseFilterFactory"/>
>          <filter class="solr.TrimFilterFactory"/>
>       </analyzer>
>     </fieldType>
> 
> I see this in the analysis:
> 
> "manchester"
> 
> ma    an    nc    ch    he    es    st    te    er    man    anc    nch    
> che    hes    est    ste    ter    manc    anch    nche
> ches    hest    este    ster    manch    anche    nches    chest    heste    
> ester    manche    anches    nchest
> cheste    hester    manches    anchest    ncheste    chester    manchest    
> ancheste    nchester
> 
> When i use terms i see all this results back in the response. So i type
> "ches" i got this:
> 
> ches
> nches
> anches
> nchest
> ncheste
> 
> I want one suggestion with a total keyword: "manchester". Is this 
> possible?
> 
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Autocomplete-terms-performance-problem-tp3351352p3358126.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to