Re: solr 1.4 suggester component
thanks .. i used http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/ with fuzzy operator.. -- View this message in context: http://lucene.472066.n3.nabble.com/solr-1-4-suggester-component-tp1766915p2012946.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr 1.4 suggester component
Sorry it took so long to respond, I got wrapped up in work. I don't think you're going to be able to pull this off (but of course I've been wrong before). File based suggestions look like they do an awful lot of stuff for you, at some expense of customization (no surprise here). That said, though, there's no need to have a second core if you wanted to do something yourself. Remember that Solr documents do not need to have the same fields. So, you could easily create a document that simply had one huge field NOT in common with any other document. Go ahead and index into this field from the dictionary file any way you want. Your autosuggest can then operate off this field, customized however you want. Recent Solr builds have an example of how to do this through Ajax calls by going against a specific field. You embed a bit of Javascript in your page that makes calls to get terms from the relevant field. See layout.vm and browse.vm in the example code for a sense of how this can occur HTH Erick On Mon, Oct 25, 2010 at 10:31 AM, abhayd ajdabhol...@hotmail.com wrote: hi erick, Thanks for the link. Problem is we dont want to have another solr core for implementing this, So was trying suggester component as it allows file based auto suggest. It works fine only issue is how to get prefix ignored . Any idea? -- View this message in context: http://lucene.472066.n3.nabble.com/solr-1-4-suggester-component-tp1766915p1767639.html Sent from the Solr - User mailing list archive at Nabble.com.
solr 1.4 suggester component
hi I was looking into using solr suggester component as described in http://wiki.apache.org/solr/Suggester I have a file which has words, phrases in it. I was wondering how to make following possible. file has - rebate form form when i look for form or even for i would like to have rebate form to be included too. I tried using str name=lookupImplorg.apache.solr.spelling.suggest.jaspell.JaspellLookup/str but no luck, wiki suggests some one liner change to get fuzzy suggestions. But not sure whats that one liner change would be Also wiki suggests * If you want to use a dictionary file that contains phrases (actually, strings that can be split into multiple tokens by the default QueryConverter) then define a different QueryConverter but i dont see the desired result here is my solrconfig.xml searchComponent class=solr.SpellCheckComponent name=suggest lst name=spellchecker str name=namesuggest/str str name=classnameorg.apache.solr.spelling.suggest.Suggester/str !-- str name=lookupImplorg.apache.solr.spelling.suggest.tst.TSTLookup/str -- str name=lookupImplorg.apache.solr.spelling.suggest.jaspell.JaspellLookup/str str name=sourceLocationamerican-english.txt/str str name=fieldname/str !-- the indexed field to derive suggestions from -- float name=threshold0.005/float str name=buildOnCommitfalse/str queryConverter name=queryConverter class=org.apache.solr.spelling.MySpellingQueryConverter/ /lst /searchComponent requestHandler class=org.apache.solr.handler.component.SearchHandler name=/suggest lst name=defaults str name=spellcheckfalse/str str name=spellcheck.dictionarysuggest/str str name=spellcheck.onlyMorePopulartrue/str str name=spellcheck.count5/str str name=spellcheck.collatetrue/str /lst arr name=components strsuggest/str /arr /requestHandler -- View this message in context: http://lucene.472066.n3.nabble.com/solr-1-4-suggester-component-tp1766915p1766915.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr 1.4 suggester component
Try here: http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/ http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/For the infix-type match you're using, you might not want the edge version of ngram... Best Erick On Mon, Oct 25, 2010 at 8:16 AM, abhayd ajdabhol...@hotmail.com wrote: hi I was looking into using solr suggester component as described in http://wiki.apache.org/solr/Suggester I have a file which has words, phrases in it. I was wondering how to make following possible. file has - rebate form form when i look for form or even for i would like to have rebate form to be included too. I tried using str name=lookupImplorg.apache.solr.spelling.suggest.jaspell.JaspellLookup/str but no luck, wiki suggests some one liner change to get fuzzy suggestions. But not sure whats that one liner change would be Also wiki suggests * If you want to use a dictionary file that contains phrases (actually, strings that can be split into multiple tokens by the default QueryConverter) then define a different QueryConverter but i dont see the desired result here is my solrconfig.xml searchComponent class=solr.SpellCheckComponent name=suggest lst name=spellchecker str name=namesuggest/str str name=classnameorg.apache.solr.spelling.suggest.Suggester/str !-- str name=lookupImplorg.apache.solr.spelling.suggest.tst.TSTLookup/str -- str name=lookupImplorg.apache.solr.spelling.suggest.jaspell.JaspellLookup/str str name=sourceLocationamerican-english.txt/str str name=fieldname/str !-- the indexed field to derive suggestions from -- float name=threshold0.005/float str name=buildOnCommitfalse/str queryConverter name=queryConverter class=org.apache.solr.spelling.MySpellingQueryConverter/ /lst /searchComponent requestHandler class=org.apache.solr.handler.component.SearchHandler name=/suggest lst name=defaults str name=spellcheckfalse/str str name=spellcheck.dictionarysuggest/str str name=spellcheck.onlyMorePopulartrue/str str name=spellcheck.count5/str str name=spellcheck.collatetrue/str /lst arr name=components strsuggest/str /arr /requestHandler -- View this message in context: http://lucene.472066.n3.nabble.com/solr-1-4-suggester-component-tp1766915p1766915.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr 1.4 suggester component
hi erick, Thanks for the link. Problem is we dont want to have another solr core for implementing this, So was trying suggester component as it allows file based auto suggest. It works fine only issue is how to get prefix ignored . Any idea? -- View this message in context: http://lucene.472066.n3.nabble.com/solr-1-4-suggester-component-tp1766915p1767639.html Sent from the Solr - User mailing list archive at Nabble.com.