I don't think it can works at the index time, because I when somebody look for a book I want to boost the search in relation with the user language ...so I don"t think it can works, except if I didn't get it.
Thanks for your answer, hossman wrote: > > > : Is there a way to convert to integer to check if a = b ... like > : recip(myfield,m,language,lang) > : But I would like to boost(scoring) field which have the same user > language > : and book language ... > : > : But for that I need to know convert.int(language) > > There is an OrdFieldSource that can be used with single-valued string > fields to get a > numeric value for where they are in the "order" of all values for that > field ... it is in fact what get's use by default when you include a > string fieldname in the functionquery syntax. > > But off the top of my head i don't think there are any Functions provided > by default that let you compare two ValueSources and return one number if > they are equal and another number if they aren't. > > Frankly: the best way to approach a problem like this is to set a boolean > field at index time if the other two fields are the same. > > > -Hoss > > > -- View this message in context: http://www.nabble.com/recip%28myfield%2Cm%2Ca%2Cb%29-tp19452492p19549282.html Sent from the Solr - User mailing list archive at Nabble.com.