Hi, I have three documents in my test data set. - <doc> <str name="id">30</str><str name="name">ABCDE XYZ GHI</str> </doc> - <doc> <str name="id">40</str><str name="name">abcde XYZ GHI</str> </doc> - <doc> <str name="id">50</str><str name="name">abcde XYZ</str> </doc>
I used the standard handler to retrieve the documents where "ghi" or "xyz" are present (http://localhost:8983/solr/select/?q=ghi+xyz&debugQuery=1). When the results are returned, the document with id = 50 is returned last, since the string "ghi" is not found. I wanted to test if the score can be altered to boost the document with id = 50. So, I executed the following dismax query - http://localhost:8983/solr/select/?qt=dismax&q=ghi+xyz&bf=ord(id)^2.0&debugQuery=1 When I did this, I didn't get any results back. I am not sure if there is anything wrong with my syntax. The relevant part of the solrconfig.xml file is - <requestHandler name="dismax" class="solr.DisMaxRequestHandler"> <lst name="defaults"> <str name="echoParams">explicit</str> </lst> </requestHandler> I looked at http://www.nabble.com/forum/ViewPost.jtp?post=8002264&framed=y for the function query discussion. Thanks. -- View this message in context: http://www.nabble.com/Boosting-using-function-query...-tf2887777.html#a8067832 Sent from the Solr - User mailing list archive at Nabble.com.