-
Notifications
You must be signed in to change notification settings - Fork 235
Request: Remove the filter for queries longer than 100 characters. #86
Conversation
This number set looks arbitrary, and it's breaking the behavior of some IAs such as Calculator in duckduckgo/zeroclickinfo-goodies#283
@jagtalon it seems like the purpose of that line is to prevent arbitrarily long queries from being @nilnilnil do we often receive queries that are longer than 100 characters? I think this deserves more testing, but in the interim calculator can just be updated to |
I don't think this needs to be entirely unbounded, but 100 chars is clearly too short. I think moving to a larger, but still arbitrary, limit (I'm thinking 1,000) is in order. cc: @mintsoft |
Hmm, conceptually this does seem like a really odd thing to do; I'm happy to workaround it within URLDecode if there's a hard-limit here however |
Thanks for noticing this! Internally we limit to 500. It should match that. 1000 is as random a number as 100, and it has negative side-effects. Changes like this should always be based on what we know. Here are some statistics on query length (based on character count). MEAN: 21 @moollaza to answer your question more directly: no, they're less than 1%. |
@jagtalon would also like a better branch name next time :). |
The second argument to grep is evaluated in list context, so the output of the right-hand grep is passed to the left-hand grep as a complete array. |
No worries, I wasn't actually making the change, just suggesting a number which seemed reasonable absent any other facts. Thanks for arriving with those facts, though! 😁 |
bummer -- but thanks 😄 |
Yeah, it kinda sucks for the needle in a haystack sorts of things of which you were likely thinking. I always try to chop off as much as possible as early as possible.. but sometimes you can't know. |
👍 |
Request: Remove the filter for queries longer than 100 characters.
129 released. Thanks all! |
Actually, weird; this page doesn't show 129 as the latest release. Any idea @mwmiller @jagtalon?https://github.com/duckduckgo/duckduckgo/releases |
@nilnilnil You have to go in and edit the tag. https://github.com/duckduckgo/duckduckgo/releases/new?tag=0.129 |
This number set looks arbitrary, and it's breaking the behavior of some IAs such as Calculator in duckduckgo/zeroclickinfo-goodies#283
I ran the tests in Goodies and Spice in both 5.16 and 5.18, and all passed.
CC @moollaza @nilnilnil