yes, you need to use ngramfilter at query-time too. On Sat, Jun 26, 2010 at 3:55 PM, Indika Tantrigoda <indik...@gmail.com>wrote:
> Hi all, > > I've been working with Solr for while and the search components work as > expected. > Recently I've had the requirement to do searching on partial words and I > setup the NGramFilterFactory. > > My schema.xml is as follows : > > <fieldType name="nGram" class="solr.TextField" > positionIncrementGap="100" stored="false" multiValued="true"> > <analyzer type="index"> > <tokenizer class="solr.StandardTokenizerFactory"/> > <filter class="solr.LowerCaseFilterFactory"/> > <filter class="solr.NGramFilterFactory" minGramSize="3" > maxGramSize="15"/> > </analyzer> > <analyzer type="query"> > <tokenizer class="solr.StandardTokenizerFactory"/> > <filter class="solr.LowerCaseFilterFactory"/> > </analyzer> > </fieldType> > > <field name="title" type="text" indexed="true" stored="true" > multiValued="false"/> > <field name="nGram_text" type="nGram" indexed="true" stored="true" > multiValued="true"/> > <copyField source="title" dest="nGram_text"/> > > Furthermore I am using the dismax query hanlder and have set a boost on the > nGram_text field. > > If I do a *:* on the Solr administration interface it shows the nGram_text > field to be populated. > However if I search for plan (Assume I indexed the word Plane) no results > are shown. > Is there any other configurations that needs to be done ? > > Thanks in advance, > > Regards, > Indika > -- Robert Muir rcm...@gmail.com