You can write a function score plugin. Here is an example:
https://github.com/jprante/elasticsearch-functionscore-conditionalboost Jörg On Tue, Sep 2, 2014 at 6:48 PM, Srinivasan Ramaswamy <[email protected]> wrote: > I am trying to write a custom scoring plugin that will let me provide some > extra data that is not in the index (through an external service) and do > customized ranking. I would ideally like to custom score all the documents > in the index that match the query. > > Currently I am planning to implement it as a service by extending > AbstractLifecycleComponent which will periodically pull that extra data > from my external service. Is there a better way ? When and how the plugin > services will be called. I would like to know in detail about the entry > points of plugins and how i should write this plugin. Any help or pointers > would be appreciated. > > Thanks > Srini > > -- > 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/dd21c829-867c-47f4-99f0-29465ae1b33d%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/dd21c829-867c-47f4-99f0-29465ae1b33d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAKdsXoEJMueVnRAquoiCMEHBBWGTS1D091v0ArmWK4f6GE2aCA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
