How to pass multiple terms as a param in script scoring

I'm making custom score script plugin for scoring based on payload value.

I've done with scoring logic, but it's working properly when it receives only one term.

I want to receive several analyzed terms in query. How can I receive several terms as array or list in params?

params: {"field": "field", "term": ["term1", "term2", "term3"]}

i want this type of params to work.

here is my code. I followed script example in elasticsearch github.
i'm working with gradle and java 14.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.