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

Search query optimization needed for some strings #738

Open
jywarren opened this issue Oct 5, 2021 · 4 comments
Open

Search query optimization needed for some strings #738

jywarren opened this issue Oct 5, 2021 · 4 comments
Labels

Comments

@jywarren
Copy link
Member

jywarren commented Oct 5, 2021

While https://spectralworkbench.org/search/test returns results fine, the following seems to crash? the server to a 502 error:

https://spectralworkbench.org/search/calcium%20hydroxide

(don't test it, i did already)

Could maybe be tested at:

https://stable.spectralworkbench.org/search/calcium%20hydroxide

(it works there!!!)

image

image

@jywarren jywarren added the bug label Oct 5, 2021
@jywarren
Copy link
Member Author

jywarren commented Nov 9, 2021

I noticed we can search for https://stable.spectralworkbench.org/search/calcium - so that's a workaround for now.

@jywarren
Copy link
Member Author

jywarren commented Nov 9, 2021

Update: I've noticed this general pattern: when I search for "calcium chloride" (without quotes), I get the error. When I only search calcium, I get several pages of results; but attempting to "next" to the next page results in the error, so I can never get past the first page of results.

@jywarren
Copy link
Member Author

jywarren commented Nov 9, 2021

We should test this in GitPod.

@RaviAnand111
Copy link

Hey @jywarren , I tried to test it and I think whats happening is, whenever something is searched which is not in database, instead of showing Not Found it gives error 502 Bad Gateway.
This is what I found, what do you think ?

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

No branches or pull requests

2 participants