Re: string field does not yield exact match result using qf parameter
Hi, You can try to increase the "pf" boost for your string field, I don't think you'll have success in having it boosted with pf since it's a string? Check explain output with &debugQuery=true and see whether you get a phrase boost. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training - www.solrtraining.com 2. mai 2013 kl. 19:16 skrev kirpakaroji : > Hi Jan > > my question is when I tweak pf and qf parameter and the results change > slightly and I do not think for exact match you need to implement the > solution that you mentioned in your reply. you can always have string field > and in your pf parameter you can boost that field to get the exact match > results on top. > > Thanks > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/string-field-does-not-yield-exact-match-result-using-qf-parameter-tp4060096p4060492.html > Sent from the Solr - User mailing list archive at Nabble.com.
Re: string field does not yield exact match result using qf parameter
Hi Jan my question is when I tweak pf and qf parameter and the results change slightly and I do not think for exact match you need to implement the solution that you mentioned in your reply. you can always have string field and in your pf parameter you can boost that field to get the exact match results on top. Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/string-field-does-not-yield-exact-match-result-using-qf-parameter-tp4060096p4060492.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: string field does not yield exact match result using qf parameter
Hi, The "pf" feature will only kick in for phrases, i.e. multiple tokens. Per definition a "string" is one single token, so it will never kick in for strings. A workaround can be found here: https://github.com/cominvent/exactmatch -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training - www.solrtraining.com 30. apr. 2013 kl. 20:52 skrev kirpakaroji : > I have a question regarding boosting the exact match queries to top, > followed by partial match and if there is no exact match then give me > partial match. The following 2 solutions have yielded different results, and > I was not clear on it why > > This is the schema I have > > >multiValued="true"/> > > > f1 > > positionIncrementGap="100"> > > > generateWordParts="1" generateNumberParts="1" catenateWords="1" > catenateNumbers="1" catenateAll="1" splitOnCaseChange="0"/> > > words="./lang/stopwords_pt.txt" enablePositionIncrements="true"/> > > language="Portuguese"/> > > > > in my solrconfig.xml I have > f1 > f1^10 f3^1 > f1^10 f3^1 > > now if I try to specify the query with these parameters in solrconfig.xml, > 99% of the time exactmatch first and then partial match 1%of the time the > exact match result is in the index but does not show on the results and does > not give any partial matches for that query either. > >But if I make it qf=f3&pf=f1^10 f3^1 yields the exactmatch result on top > 100% of the time. > > Why I am seeing this behavior. > > is there anyway to say qf=f1 on the interface and get only exact results if > present (in this case though f1 is string but the q parameter has spaces. do > I need to use pf field > I am using dismax query parser. > > Thanks > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/string-field-does-not-yield-exact-match-result-using-qf-parameter-tp4060096.html > Sent from the Solr - User mailing list archive at Nabble.com.
string field does not yield exact match result using qf parameter
I have a question regarding boosting the exact match queries to top, followed by partial match and if there is no exact match then give me partial match. The following 2 solutions have yielded different results, and I was not clear on it why This is the schema I have f1 in my solrconfig.xml I have f1 f1^10 f3^1 f1^10 f3^1 now if I try to specify the query with these parameters in solrconfig.xml, 99% of the time exactmatch first and then partial match 1%of the time the exact match result is in the index but does not show on the results and does not give any partial matches for that query either. But if I make it qf=f3&pf=f1^10 f3^1 yields the exactmatch result on top 100% of the time. Why I am seeing this behavior. is there anyway to say qf=f1 on the interface and get only exact results if present (in this case though f1 is string but the q parameter has spaces. do I need to use pf field I am using dismax query parser. Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/string-field-does-not-yield-exact-match-result-using-qf-parameter-tp4060096.html Sent from the Solr - User mailing list archive at Nabble.com.