Ok, i try NGrams. My configuration looks like this:

        <fieldType name="suggestion" class="solr.TextField"
positionIncrementGap="100">
                <analyzer type="index">
                 <charFilter class="solr.HTMLStripCharFilterFactory"/>
                 <tokenizer class="solr.KeywordTokenizerFactory"/>
                 <filter class="solr.LowerCaseFilterFactory"/>
                 <filter class="solr.NGramFilterFactory" minGramSize="1"
maxGramSize="15" />
                </analyzer>
                <analyzer type="query">
                 <charFilter class="solr.HTMLStripCharFilterFactory"/>
                 <tokenizer class="solr.KeywordTokenizerFactory"/>
                 <filter class="solr.LowerCaseFilterFactory"/>
                </analyzer>
        </fieldType>

<field name="suggestionField" type="suggestion" indexed="true"
stored="true"/>

i try to run the query:

http://localhost:8983/solr/terms?terms.fl=suggestionField&terms.prefix=chest

Result:
chest
cheste
chester


The result is not what i expected. I think the query is not ok?..--
View this message in context: 
http://lucene.472066.n3.nabble.com/Autocomplete-terms-middle-of-words-tp2878694p2878877.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to