Hmm, the terms component can only give you terms, so I don't think you can use 
that method.
Try to go for creating a new Solr Core for your usecase. A bit more work but 
much more flexible.

See http://search-lucene.com/m/Zfxp52FX49G1

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

On 22. sep. 2010, at 13.41, Arunkumar Ayyavu wrote:

> It's been over a week since I started learning Solr. Now, I'm using the
> electronics store example to explore the autocomplete feature in Solr.
> 
> When I send the query terms.fl=name&terms.prefix=canon to terms request
> handler, I get the following response
> <lst name="terms">
>  <lst name="name">
>   <int name="canon">2</int>
>  </lst>
> </lst>
> 
> But I expect the following results in the response.
> canon pixma mp500 all-in-one photo printer
> canon powershot sd500
> 
> So, I changed the schema for textgen fieldType to use
> KeywordTokenizerFactory and also removed WordDelimiterFilterFactory. That
> gives me the expected result.
> 
> Now, I also want the Solr to return "canon pixma mp500 all-in-one photo
> printer"  when I send the query terms.fl=name&terms.prefix=pixma. Could you
> gurus help me get the expected result?
> 
> BTW, I couldn't quite understand the behavior of terms.lower and terms.upper
> (I tried these with the electronics store example). Could you also help me
> understand these 2 query fields?
> Thanks.
> 
> -- 
> Arun

Reply via email to