Hi Peter, If you are using an older version, you can just copy paste its source code ( back port). And yes same analysis chain for both index and query. Thats just one configuration alternative that would work for your examples. It is possible to create others. You need to give it a try by using this a starting point. Play with analysis page, improve it if it necessary.
Ahmet On Monday, September 29, 2014 10:07 PM, PeterKerk <petervdk...@hotmail.com> wrote: Hi Ahmet, Am I correct that his this is only avalable in Solr4.8? http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.TruncateTokenFilterFactory Also, I need to add your lines to both "index" and "query" analyzers? making my definition like so: <fieldType name="searchtext" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.TruncateTokenFilterFactory" prefixLength="3"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.TruncateTokenFilterFactory" prefixLength="3"/> </analyzer> </fieldType> Your solution seems much easier to setup than what is proposed by Alexandre...for my understanding, what is the difference? Thanks! -- View this message in context: http://lucene.472066.n3.nabble.com/Flexible-search-field-analyser-tokenizer-configuration-tp4161624p4161778.html Sent from the Solr - User mailing list archive at Nabble.com.