Function Score Query based on dictionary

Hi all,

Is it possible to apply a script on sort without using a numeric field, but
one based on a string?

I want to to re-order the results based on a dictionary of values that
exist in a field.

I have never tried scripts before, but if it is possible to write a
cascaded statement, then I could apply boosting as well to do this trick.



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
To view this discussion on the web visit
For more options, visit