Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequestError: RequestError(400, 'search_phase_execution_exception', 'runtime error') #59

Open
lazpuzzle opened this issue Nov 25, 2021 · 1 comment

Comments

@lazpuzzle
Copy link

I recieved this error. then call function "get_similar()" in row "result = es.search(index=index, body=q)" i don't know what is problem please help

@lazpuzzle
Copy link
Author

This is q before send to " body = q "

{'query': {'script_score': {'query': {'query_string': {'query': '*'}}, 'script': {'source': "doc['model_factor'].size() == 0 ? 0 : cosineSimilarity(params.vector, 'model_factor') + 1.0", 'params': {'vector': [0.5819143, 0.4214144, 0.3362683, 0.13346885, 0.76103616, 0.44237646, 0.3155206, -0.6836709, 1.4125912, -0.45632467, 0.3479211, -0.05247285, -0.4647991, 0.17278247, 0.015231105, -0.77845603, -0.24062215, 0.111886136, 0.80829555, -1.1101296]}}}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant