-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Internal Server Error caused by searching #490
Comments
it appears to be the presence of |
Maybe this will be solved using the new experimental search? I haven't tested tho |
I encountered this issue with glfw-d, adding the quotes worked as well (both double and single, the later being a non-exact search). After a quick search, it may have something to do with how MongoDB treats hyphens as a negator (see: https://docs.mongodb.com/manual/text-search/#term-exclusion). Searching for |
I would like to add that the query |
searching for https://code.dlang.org/search?q=d (500) |
I think the issue there is that there are too many matches (breaks the mongodb call somehow) |
Additional info, to help future people that might look into this. "It's complicated." kind of captures what I was able to find. TL;DR -- I don't think there is a simple fix. This would be part of a bigger update/restructure to the registry code. Caveat, I spent a couple hours during BeerConf and have never used MongoDB before. If there is a simple fix, it will be by changing the query or automatically quoting the content (but that might have different error cases).
The relevant code seems to be in cursor.d, in the vibe-d Mongo driver... if (!query["query"].isNull() || !query["$query"].isNull() )
// TODO: emit deprecation warning
full_query = query;
} else {
full_query = Bson.emptyObject;
full_query["$query"] = query;
}
if (!m_sort.isNull()) full_query["orderby"] =
// logError( "full_query: %s", full_query );
However, removing the
|
I can no longer reproduce live. I tried: |
yeah results are not ideal, but nice to see that the issue is actually gone, although it worries me a bit that we haven't really touched the code here to fix anything |
Some search terms may cause server errors. For example, a search for
excel-d
resulted in the following message.The text was updated successfully, but these errors were encountered: