I have a query similar to this:
I need to boost the results where user_id_i:(123 OR 222 OR 512 OR 932)
something like => __val_:"if(user_id_i:(123 OR 222 OR 512 OR 932), 100, 0)"
But obviously I need a function that returns true or false for that particular question.
I think you can use the boost
query parameter for this, but you will have to use the edismax query parser and not the lucenePlusSort one.
(http://wiki.apache.org/solr/ExtendedDisMax#boost_.28Boost_Function.2C_multiplicative.29)
[boost] => product(if(exists(query({!v='user_id_i:(123 OR 222 OR 512 OR 932)'})),100,1))