On Thu, Sep 23, 2010 at 1:57 PM, Chantal Ackermann < chantal.ackerm...@btelligent.de> wrote:
> On Wed, 2010-09-22 at 20:14 +0200, 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. > > > > This has not so much to do with autosuggest, anymore? > You put those quotes in to denote the search input, not to say that the > search input was a phrase, I suppose. Searching for the phrase (quoted), > only the first line should have been found. > I didn't mean I included the the quotes in my search query. > > If you want to have returned hits that include most of the searched > terms, and in case of only two input terms both: you can configure such > sophisticated rules with the > http://wiki.apache.org/solr/DisMaxQParserPlugin > Have a look at the "mm" parameter (Minimum Should Match) > This is one area I haven't explored enough. I'll spend some time this weekend to understand this plugin's capabilities. Thanks. > > Chantal > > -- Arun