Make sure you're using AND as default operator... -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com
On 22. sep. 2010, at 20.14, Arunkumar Ayyavu wrote: > Thanks for the responses. Now, I included the EdgeNGramFilter. But, I get > the following results when I search for "canon pixma". > Canon PIXMA MP500 All-In-One Photo Printer > Canon PowerShot SD500 > > As you can guess, I'm not expecting the 2nd result entry. Though I > understand why I'm getting the 2nd entry, I don't know how to ask Solr to > exlcude it (I could fitler it in my application though). :-( Looks like I > should study more of Solr's capabilites to get the solution. > > It would be very nice if you could provide more pointers to the solution. > Thanks a lot. > > On Wed, Sep 22, 2010 at 7:48 PM, Jan Høydahl / Cominvent < > jan....@cominvent.com> wrote: > >> 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 >> >> > > > -- > Arun