: 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
You would have to write your custom function for that.
On 31.03.2016 11:24, ~$alpha` wrote:
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.
--
View this message in co
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.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Complex-Sort-tp4267155p4267165.html
Sent from the So
Hi,
Not sure if I fully understood your case, but here are some ideas:
- if you have small number of ids you can have score_%id% field that can
be used for sorting
- if number of ids is large you can use sort by function to parse score
data and find right score
- if number of results is small,