: 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