Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant