: I am not sure how to use "Sort By Function" for Case.
: 
: |10#40|14#19|33#17|27#6|15#6|19#5|7#2|6#1|29#1|5#1|30#1|28#1|12#0|20#0|
: 
: Can you tell how to fetch 40 when input is 10.

Something like...

if(termfreq(f,10),40,if(termfreq(f,14),19,if(termfreq(f,33),17,....)))))))))))

But i suspect there may be a much better way to achieve your ultimate goal 
if you tell us what it is.  what do these fields represent? what makes 
these numeric valuessignificant? do you know which values are significant 
when indexing, or do they vary for every query?

https://people.apache.org/~hossman/#xyproblem
XY Problem

Your question appears to be an "XY Problem" ... that is: you are dealing
with "X", you are assuming "Y" will help you, and you are asking about "Y"
without giving more details about the "X" so that we can understand the
full issue.  Perhaps the best solution doesn't involve "Y" at all?
See Also: http://www.perlmonks.org/index.pl?node_id=542341




-Hoss
http://www.lucidworks.com/

Reply via email to