I was focused on how to use a custom similarity and not how to actually tackle the problem. In this respect, I agree with Jörg. Also, I believe the today's release (1.0.0.RC1) has additional scripting options:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-advanced-scripting.html Cheers, Ivan On Wed, Jan 15, 2014 at 10:53 AM, [email protected] < [email protected]> wrote: > Why don't you use function score if you only want to tweak parameters? > > > http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html > > Changing similarity is a massive change, it's exchanging the whole > algorithm. Not recommended unless you can't get what you want from function > score. > > Jörg > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEOLeH_HhB4Lf9eg7OEtGK9w6Nk7vpoH9CU97D%2BSyRbig%40mail.gmail.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQAiU2RK9vbpDxemDn15VbuKOV0ujCxGiuPNGVZxs-dC-g%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
