If you search for words with 3 or less letters Discourse is behaving weird
-
Gather around, interested people for I am going to tell you a tale of me, trying to use Discourse-Search.
Not too long ago I felt like looking up an old topic I made.
I know the topic is called "Can we not install this update".
So I click on the Search-Icon at the top.
Well... that is interesting I never searched for @Gaska or @faoileag before. Thanks for the suggestion, though.... I guess? Who the hell are you anyway, Gaska. Have we talked before? If not: Hi!
So besides Discourse showing random people in the empty search everything seems normal.
Since I know the name of the topic I am looking for I start typing it in:
Okay, So... Discourse still insists I totally want to search for those people. That is stupid but whatever.... I know how the topictitle continues:
Oh, okay. At least @Gaska and @faoileag are safe from my searching habbit now. Though no results found sounds suspiciously wrong. But I can only say that because I KNOW THE TITLE.
I keep on typing:
Yeah, this is getting silly. You also know the answer to the problem because you could read the title. At this point I started to notice the recurring theme of 3 letter words (all in the right order, the right context and valid words!). Hence I go on:
Okay, cool, I found what I was looking for. (green rectangle added in post production). It is being at the third place for some reason but whatever. but NOW IT ALSO BOLDS THE 3 LETTER WORDS it didn't want to search for before! WTF?Let's to a bonus-round here:
Can I get my topic at the top of the search? Let's find out:
Welp, not like this, I guess.
Ahh, there we go.After typing in the FULL TITLE I was actually getting the search result that was most recent, and was clearly what I was looking for.
So.... my complaints here:
- Why the hell does it show random people in my search-box?
- Why does it still show those people after the first "invalid" word in the query?
- Why do those people go away with the second "invalid" word?
- Why does it not tell me that my words are being ignored? (this is the major one!)
- Why does it highlight the ignored search-results?
- Why are the results in this random order? The searched topic was the latest one of the results, afaict.
Paging @Matches even though you are watching the bug-category, afaik.
Filed Under: Should Discourse ever stop changing the numbers in front of a list, you can find out how I prioritize the complaints | I know there are a few Search-related topics around but I don't want to revive an old topic and Search has been updated anyway. | I searched for "search" on Discoursebugs and couldn't find anything.... so yeah
-
That's definitely strange - with just the word install, it finds it, but as you found, it doesn't with THREE of the words in the title. Who writes search that works like this?!
-
Nah,it clearly filters out words with 3 or less letters because ... I don't even know.
Filed Under: There must be a reason for it...
-
3 or less letters due to too many results (in a normal environment)
-
If you search for "install update", the topic you're looking for is the top result.
I'm assuming they filter out either common words or short words (3 or 4 letters or less). Or possibly they filter out both. But on the results, they highlight every word that matches (since that's, I assume, client side).
-
Filed Under: There must be a reason for it...
Likely not a sane one, though.
EDIT - filtering out 3 letter searches, I get that. Multiple 3 letter words, not so much.
-
But you actually read the OP and looked at the pictures, right? Because in no way does this behave normally.
So.... my complaints here:
Why the hell does it show random people in my search-box?
Why does it still show those people after the first "invalid" word in the query?
Why do those people go away with the second "invalid" word?
Why does it not tell me that my words are being ignored? (this is the major one!)
Why does it highlight the ignored search-results?
Why are the results in this random order? The searched topic was the latest one of the results, afaict.Filtering out 3 letter words is one thing. Not telling me, highliting them, showing me different results depending on how many 3 letter words I type in and the sorting differently depending on whatever it feels like count as bugs in my book....
If you search for "install update", the topic you're looking for is the top result.
Doesn't explain why it's not on the top for "Can we not install this".... just saying.I'm assuming they filter out either common words or short words (3 or 4 letters or less). Or possibly they filter out both. But on the results, they highlight every word that matches (since that's, I assume, client side).
Okay, I guess that would make sense but still be stupid from a user perspective (my perspective in this case). Especially if they don't tell me!EDIT - filtering out 3 letter searches, I get that. Multiple 3 letter words, not so much.
Thank you for being sane.Filed Under: My point that it is "broken" still stands IMO
-
BTW it shows the people because they both have the word 'can' in their 'full name'. No idea why they show before you searched though, I can't repro that.
-
Doesn't explain why it's not on the top
That's what my second paragraph was conjecturing.
I guess that would make sense but still be stupid
I don't disagree. It is broken.
-
BTW it shows the people because they both have the word 'can' in their 'full name'.
At first I thought it tried to give me people in one of my groups for no reason but this makes more sense. Not sure how you can find that out from the search, though.
Also not sure why the hell 3 letter search works for names but not elsewhere.... (besides the too many results statement)No idea why they show before you searched though, I can't repro that.
Hm, neither can I. That might have been happening since I had to reproduce the whole thing for the screenshots. For some reason Discourse remembered than "can" had been in the box as last input.Filed Under: This is getting more and more interesting... at least I kept my "Leader"-title :D
-
-
-
Well, apparently "
< Q" is a thing.
a
b
c
d
e
f
g
h
i
-
Text
<q>Text</q>
It's, apparently, a short quotation. First I've ever seen it.
Did you get completely sidetracked when you were replying? Or were you replying to discover that tag?
-
I was going to quote you in it's entirety with < Q to make the text hidden and leave it at that.
Then it did something.
Then I had to play with it.
As @accalia would say,
Ohhhh, shiny!
ChaosTheEternal @ChaosTheEternal
<a
ChaosTheEternal @ChaosTheEternal
Aaaaaaaaaand it does.
<a
><script type='text/javascript'>alert('Surely not, right?';</script>Surely not, right?
But what about other nested clickable things?
<a
<button>Can I make a button?
-
<a <button class="mention">Can I make a button?
<a
ChaosTheEternal
has a linkCan I make a button?<a
ChaosTheEternalCan I make a div?Ok, done mentioning you.
<a <class="mention">Now this is interesting.
<a <class="mention">chaostheeternal
<a <class="mention">sam <a <class="mention">eviltrout
<a <class="mention">sam <class="mention">eviltrout
-
So, if I include 1000 most common English words in my full name (lawl,
name
), I will appear in 95% searches and creep everybody here?@Kuro, hi. I doubt we talked - I joined a week or so ago and only replied in very few topics.
-
if I include 1000 most common English words in my full name (lawl, name), I will appear in 95% searches and creep everybody here?
The Evil Ideas topic is over there .
EDIT: Wat? Discurse strips quotation marks out of quotations @discoursebot
-
Last day without Discourse Bugs: null <t3897p18>
-
s/Last/Frist/
-
Wat? Discurse strips quotation marks out of quotations
No, it just pulls the "plain text" of what's highlighted:
in my full name (lawl, <q>name</q>), I will appear
-
My bad. I buttumed those were actual punctuation marks “ ”, not markup.
-
Eh, your argument is still valid because they strip formatting out of quotes.
-
And then he said,
You're an asshole
:)
-
-
No context lost at all.
-
Stripping formatting is stupid, but it's not news. Stripping punctuation would be beyond stupid — but not too stupid to be beyond the capability of CDCK.
-
I could swear that sometimes double quotes are interpreted as a blockquote. I can't make it happen now, and I don't see anything in our FAQs about it.
-
I could swear that sometimes double quotes are interpreted as a blockquote.
"This is some text"
Hmm, I'm pretty sure that in the early days of HTDiscoMarkML, that would have been formatted as a blockquote. I wonder when and why that was changed.
-
It used to, at least up until the middle of August (that I can find):
http://what.thedailywtf.com/t/multiple-likes-on-a-single-post/2227/7?u=chaostheeternal
You'll need to visit or expand the quote.
Raw
"Days since last Discourse bug: 0"
As to why they fixed it, I dunno, enough complaints?
-
They USED to interpret double quotes that only were a single line as a block quote
Then they changed it.
But ultimately, making a block quote that only works if it's exactly one line for quotation marks was a WTF, so I'm glad they nuked it.
-
I agree. But it might explain quote stripping. It was confusing why it would happen sometimes and not others.
-
So somebody thought that it was a good idea to explode the string and verify that each word was > 3. Seems standard dicsource.
-
Or... not. It's a minimum length of 3 before you can search.
So if(len(textbox) > 3) {do stuff} else {return}
-
-
There's a reason it's called "Discosearch".
-
Fair point - I'd just assumed since the Discosearch has improved to the point it's almost useful that the more idiotic bits had gone away.
Filed under: Yeah yeah, I know what they say about assumptions.....
-
That's just the textbox. Evidentally the backend validates the way I said before deciding to actually return results.
-
Fewer.
It's "3 or fewer letters".
-
How do I flag this for pd or gn? And can you as admin/mod dismiss it even though you yourself got flagged?
Filed Under: I would search for it but I am unsure I know how to use Discosearch
-
How do I flag this for pd or gn?
Flag for mods (last option) and mention PD/GN in the message.
And can you as admin/mod dismiss it even though you yourself got flagged?
And I could but wouldn't. (Well, technically all such flags get 'dismissed' so the flags don't count against TL3 criteria, but they're still recorded and sufficient flags will result in a badge being awarded.)
-
We really need a plugin to be able to specifically mark a post as pedantic dickweedy, like you can mark one as off-topic.
-
True. At least then the badges could be automated. And abused...
-
-
And honestly if I had used RoR before I might think once about giving it a go but frankly... trying to faff about with Discourse's internals scares me.
-
aww can't break it that way. oh well. butthurtface: :(
-
You could write such a plugin.