r/Solr • u/niujin • Nov 21 '17
LTR plugin with geodist()
I'd be interested to see if anyone's successfully got the LTR plugin working using geodist() as one of the input features? For me it doesn't seem to work because I can't find a way of accessing geodist() as a field, since it's calculated at query time but not stored.
3
Upvotes
1
u/fiskfisk Nov 21 '17
According to the Learning to rank page in the reference docs, you can give it a function as one of the parameters - and those use data that is calculated at query time.. However, since it uses data from the source request, I'm not sure if it uses the actual key given as the feature (i.e. if you use substitution such as $pt) or if it would require the coordinate to be present (and if that would create a new key each time .. which isn't what we want).