Thanks, that worked perfectly and is far simpler than extending DefaultSimilarity which I did last night.
Hope this helps others who are trying to implement recommendation. The Solr in Action book gives a great start on recommendation, but lacks important details on collaborative filtering implementation (this issue specifically). -Troy On Sat, May 23, 2015 at 9:33 PM, Yonik Seeley <ysee...@gmail.com> wrote: > On Sat, May 23, 2015 at 1:29 PM, Troy Collinsworth > <troycollinswo...@gmail.com> wrote: > > While trying to query a multivalued String field for multiple values, > when > > any one value matches the score is higher for the lower value and lower > for > > the higher. I swapped the value order and it had no affect so it isn't > > positional. I want the score to be the same irrespective of the value > > matched. I also still want the score highest when both values match. > > It's a bit cumbersome, but you can make each clause a constant score query. > http://yonik.com/solr/query-syntax/#ConstantScoreQuery > > userIds:890^=1 userIds:931^=1 > or I think the following should work as well: > userIds:(890^=1 931^=1) > > -Yonik >