Dismax RequestHandler adn Fuzzy Search
Hi! I would like to implement a fuzzy search with the Dismax Request Handler. I noticed that there are some discussions about that, but all from the year 2009. (adding ~ in solrconfig) Is it still at the same state or may be already implemented? Is there another option to do fuzzy search with a dismax requestHandler? thanks in advance! -- View this message in context: http://lucene.472066.n3.nabble.com/Dismax-RequestHandler-adn-Fuzzy-Search-tp3178747p3178747.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dismax RequestHandler adn Fuzzy Search
Hi! I would like to implement a fuzzy search with the Dismax Request Handler. I noticed that there are some discussions about that, but all from the year 2009. (adding ~ in solrconfig) Is it still at the same state or may be already implemented? It is already implemented. https://issues.apache.org/jira/browse/SOLR-1553
Re: Dismax RequestHandler adn Fuzzy Search
thanks for your answer! I tried to add the following line to the solrconfig.xml file: str name=pffieldName~0.8/str Before adding the line I got 14 results for a request. After adding the line (and restarting solr) I did the same request and changed just one letter of the string. I was expecting that I have to get more or less the same results, but what I get are no results. What might by the reason? -- View this message in context: http://lucene.472066.n3.nabble.com/Dismax-RequestHandler-adn-Fuzzy-Search-tp3178747p3178976.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dismax RequestHandler adn Fuzzy Search
thanks for your answer! I tried to add the following line to the solrconfig.xml file: str name=pffieldName~0.8/str Before adding the line I got 14 results for a request. After adding the line (and restarting solr) I did the same request and changed just one letter of the string. I was expecting that I have to get more or less the same results, but what I get are no results. What might by the reason? edismax enables fuzzy search but you should use that tilde sing in q parameter. What is your purpose of using it in pf parameter?
Re: Dismax RequestHandler adn Fuzzy Search
iorixxx wrote: What is your purpose of using it in pf parameter? I don't know. I have seen it somewhere and i thought it has to be in the pf parameter. iorixxx wrote: edismax enables fuzzy search but you should use that tilde sing in q parameter. I tried this in qf parameter (fieldname~0.8^2) but have still the same problem: no results How is the syntax when I do this in the q parameter? here is my requesthandler. May be it helps: requestHandler name=search class=solr.SearchHandler default=true lst name=defaults str name=echoParamsall/str int name=rows10/int str name=defTypeedismax/str str name=q.alt*:*/str str name=fl*,score/str str name=bfpopulation^0.0005/str str name=sortscore desc, /str str name=qfcountry^1 country_exact^1.5 city~0.8^2 city_exact^2.5 street^2 street_exact^2.5 poi_name^1.5 housenumber^2 poi_name_exact^2/str /lst /requestHandler -- View this message in context: http://lucene.472066.n3.nabble.com/Dismax-RequestHandler-adn-Fuzzy-Search-tp3178747p3179261.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dismax RequestHandler adn Fuzzy Search
I tried this in qf parameter (fieldname~0.8^2) but have still the same problem: no results Okey it is not qf nor pf. Just plain q parameter. q=test~0.8
Re: Dismax RequestHandler adn Fuzzy Search
iorixxx wrote: q=test~0.8 do you add ~0.8 in the query (http) or in the solrconfig.xml (like str name=qfield~0.8/str)? is test the fieldName or a search string? -- View this message in context: http://lucene.472066.n3.nabble.com/Dismax-RequestHandler-adn-Fuzzy-Search-tp3178747p3179643.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dismax RequestHandler adn Fuzzy Search
q=test~0.8 do you add ~0.8 in the query (http) or in the solrconfig.xml (like str name=qfield~0.8/str)? mostly in the http. is test the fieldName or a search string? search string. Do you have another use case?
Re: Dismax RequestHandler adn Fuzzy Search
maybe you can read http://wiki.apache.org/solr/DisMaxQParserPlugin 2011/7/19 Ahmet Arslan iori...@yahoo.com q=test~0.8 do you add ~0.8 in the query (http) or in the solrconfig.xml (like str name=qfield~0.8/str)? mostly in the http. is test the fieldName or a search string? search string. Do you have another use case?