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

500 error on /query endpoint #7

Open
maximusunc opened this issue Apr 28, 2022 · 1 comment
Open

500 error on /query endpoint #7

maximusunc opened this issue Apr 28, 2022 · 1 comment

Comments

@maximusunc
Copy link

I'm getting a 500 error from the following GET request: https://smart-api.info/api/query?q=TRAPI%20KP. This query used to work but has recently stopped working.

Here is the error that is returned:
{"code":500,"success":false,"error":"search_phase_execution_exception","root_cuase_line_00":"Query contains too many nested clauses; maxClauseCount is set to 1024","debug":{"error":{"root_cause":[{"type":"too_many_nested_clauses","reason":"Query contains too many nested clauses; maxClauseCount is set to 1024"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"smartapi_docs","node":"lpmpQYOsQVSFYPa-3_aCsw","reason":{"type":"too_many_nested_clauses","reason":"Query contains too many nested clauses; maxClauseCount is set to 1024"}}],"caused_by":{"type":"too_many_nested_clauses","reason":"Query contains too many nested clauses; maxClauseCount is set to 1024","caused_by":{"type":"too_many_nested_clauses","reason":"Query contains too many nested clauses; maxClauseCount is set to 1024"}}},"status":500}}

@maximusunc
Copy link
Author

I think this is related, but not necessarily a bug, but the /query endpoint used to return an _id unique field for each returned "hit" as well but no longer does.

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