Hi Ahmet, This is the fieldType for "name":
<fieldType name="textgen" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="0"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldType> and: <field name="name" type="textgen" indexed="true" stored="true"/> there's no ShingleFilterFactory. And also after changing parameters in the schema, should one re-index the table? On Sun, Nov 14, 2010 at 10:32 PM, Ahmet Arslan <iori...@yahoo.com> wrote: > > I'm using Solr 1.4.1 and I'm willing to use TermsComponent > > for AutoComplete. > > The problem is, I can't get it to match strings with spaces > > in them. So to > > say, > > > > > terms.fl=name&terms.lower=david&terms.prefix=david&terms.lower.incl=false&indent=true&wt=json > > > > matches all strings starting with "david" but if I change > > it to: > > > > > terms.fl=name&terms.lower=david%20&terms.prefix=david%20&terms.lower.incl=false&indent=true&wt=json > > > > it doesn't match all strings starting with "david ". Is it > > meant to be that > > way? > > This is about fielyType of name? What is it? If it does have > ShingleFilterFactory in it, then this is expected. > > > > -- Parsa B. Ghaffari