I am trying to use
pyes.query.FunctionScoreQuery
in python but getting this error
NameError: name 'FunctionScoreQuery' is not defined
I am using PyES version 0.19.1. I tried to look for this function in the API though dir(pyes.query) but it doesn't list any class by this name. So can anybody tell me whether this functions exits and if it exists, can you provide an example of how to actually use it in code.