Re: boosting certain docs based on a filed value
> > great.. > > one last question > I am using dismax. > > when i add this to bf in solrconfig.xml it give me errors > when executing > > > > > name="defType">dismax > name="echoParams">explicit > > > text^2.5 features^10 > displayName^5.0 mfg^3.0 description^3.0 > > > text^0.2 features^1.1 > displayName^5.0 mfg^3.0 mfg_exact^1.9 > > > > recip(rord(mfg),1,1000,1000)^0.3 paymentType:postpaid^8.5 > > .. > You need to use bq parameter. http://wiki.apache.org/solr/DisMaxQParserPlugin#bq_.28Boost_Query.29 paymentType:postpaid^8.5
Re: boosting certain docs based on a filed value
great.. one last question I am using dismax. when i add this to bf in solrconfig.xml it give me errors when executing dismax explicit text^2.5 features^10 displayName^5.0 mfg^3.0 description^3.0 text^0.2 features^1.1 displayName^5.0 mfg^3.0 mfg_exact^1.9 recip(rord(mfg),1,1000,1000)^0.3 paymentType:postpaid^8.5 .. -- View this message in context: http://lucene.472066.n3.nabble.com/boosting-certain-docs-based-on-a-filed-value-tp2012962p2024324.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: boosting certain docs based on a filed value
> > thanks!! that worked.. > > Can i enter the sequence too like "postpaid,free,costly"? > Does that mean you want to display first postpaid, after that free, and lastly costly? If thats you want, i think it is better to create a tint field using these types and then sort by this field. pstpaid=300 free=200 costy=100 sort=newTintField desc, score desc http://wiki.apache.org/solr/CommonQueryParameters#sort
Re: boosting certain docs based on a filed value
thanks!! that worked.. Can i enter the sequence too like "postpaid,free,costly"? -- View this message in context: http://lucene.472066.n3.nabble.com/boosting-certain-docs-based-on-a-filed-value-tp2012962p2013895.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: boosting certain docs based on a filed value
> I was looking to boost certain docs based on some values in > a indexed field. > > e.g. > pType > - > post paid > go phone > > Would like to have post paid docs first and then go phone. > I checked the functional query but could not figure out. You can use http://wiki.apache.org/solr/DisMaxQParserPlugin#bq_.28Boost_Query.29 if you are using dismax. bq=pType:"post paid"^100 If you are using default query parser then you can append this optional clause to your query q = some other query pType:"post paid"^100
boosting certain docs based on a filed value
hi I was looking to boost certain docs based on some values in a indexed field. e.g. pType - post paid go phone Would like to have post paid docs first and then go phone. I checked the functional query but could not figure out. Any help? -- View this message in context: http://lucene.472066.n3.nabble.com/boosting-certain-docs-based-on-a-filed-value-tp2012962p2012962.html Sent from the Solr - User mailing list archive at Nabble.com.