: I actually used the _val_ hack, so query foo:bar : _val_:"ord(popularity)^0.5", still playing with it though its still : skewing results a bit to much.
if your query string is... foo:bar _val_:ord(popularity)^0.5 ..then part of your problem may be that (unless you've changed the default operator) that will match all docs with popularity even if they don't match foo:bar besides that, debugQuery=1 and the explain output is your friend. -Hoss