Spaces should work just fine. Can you show us exactly what is happening with the score that leads you to the conclusion that it isn’t working?
Some testing from an example collection I have… No boost: http://localhost:8983/solr/collection1/select?q=text%3Abook&fl=id%2Cprice%2Cyearpub%2Cscore&wt=csv&defType=edismax id,price,yearpub,score db9780819562005,13.21,1989,0.40321594 db1562399055,17.87,2001,0.28511673 db0072519096,66.67,2008,0.28511673 db0140236392,10.88,1994,0.28511673 db04,44.99,2007,0.25200996 db07,19.77,2005,0.25200996 db0763777595,24.44,2002,0.25200996 db0879305835,43.58,2011,0.24947715 db1933550309,18.99,2004,0.24691834 db02,40.09,2009,0.21383755 Boost of just yearpub: http://localhost:8983/solr/collection1/select?q=text%3Abook&fl=id%2Cprice%2Cyearpub%2Cscore&wt=csv&defType=edismax&bf=ord%28yearpub%29 id,price,yearpub,score db0879305835,43.58,2011,11.069619 db1847195881,33.62,2010,10.635455 db02,40.09,2009,10.233932 db0072519096,66.67,2008,9.897689 db0316033723,23.1,2008,9.821208 db04,44.99,2007,9.465844 db05,44.99,2007,9.419684 db9780061336461,12.18,2007,9.398244 db07,19.77,2005,8.662797 db1933550309,18.99,2004,8.256611 boost of yearpub and price, using just a space as separator: http://localhost:8983/solr/collection1/select?q=text%3Abook&fl=id%2Cprice%2Cyearpub%2Cscore&wt=csv&defType=edismax&bf=ord%28yearpub%29%20ord%28price%29 id,price,yearpub,score db0072519096,66.67,2008,28.933228 db0879305835,43.58,2011,28.15772 db04,44.99,2007,27.414654 db05,44.99,2007,27.371819 db02,40.09,2009,27.009602 db1847195881,33.62,2010,26.636993 db9780201896831,57.43,1997,24.749598 db0767914384,37.87,1997,22.835175 db0316033723,23.1,2008,21.037462 db0763777595,24.44,2002,19.58986 Score keeps increasing with each boost. Regards, Garth > Hey Ahmet, > > thanks for your answer. > I've read about this on the following page: > http://wiki.apache.org/solr/FunctionQuery > Using FunctionQuery point 3: > "The bf parameter actually takes a list of function queries separated by > whitespace and each with an optional boost." > > If I write it the way you suggested, the result is the same. > Only inhabitants ranked up and importance will be ignored. > > greetings > > > > > Ahmet Arslan <iori...@yahoo.com> schrieb am 20:26 Dienstag, 14.Oktober 2014: > > > > Hi Jens, > > Where did you read that you can write it separated by white spaces? > > bq and bf are both can be defined multiple times. > > q=foo&bf=ord(inhabitants)bf=ord(importance) > > Ahmet > > > > > On Tuesday, October 14, 2014 6:34 PM, Jens Mayer <mjen...@yahoo.com.INVALID> > wrote: > Hey everyone, > > I have a question about the boost function of solr. > The documentation say about multiple function querys that I can write it > seperated by whitespaces. > > Example: q=foo&bf=ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3 > > Now I have two fields I like to boost. Inhabitants and importance. > The field Inhabitants contain the inhabitants of citys. and the field > importance contain a priority value - citys have the value 10, suburb the > value 5 and streets the value 1. > If I use the bf parameter I can boost inhabitants so that citys with the most > inhabitants ranked up. > > Example: q=foo&bf=ord(inhabitants) > > The same happens if I boost importance. > > Example: q=foo&bf=ord(importance) > > But if I try to combine both so that importance and inhabitants ranked up > only inhabitants will be ranked up and importance will be ignored. > > Example: q=foo&bf=ord(inhabitants) ord(importance) > > Knows anyone how I can fix this problem? > > > greetings