Searching results not displaying expected topics

(Dean Taylor) #1

Continuing the discussion from Missing English text `[en.admin.embedding.embed_classname_whitelist]`:

I was expecting a search for embed_classname_whitelist to return results that mentioned [en.admin.embedding.embed_classname_whitelist].

Whilst this might just be because of word-break characters . and ] they are still word-break characters and the results are still unexpected.

Steps to reproduce

  1. Search meta for embed_classname_whitelist

Expected result

Search results should include the following topics:

Actual result

Currently the results are a single result, linking to this topic:

Additional Notes

Searching for en.admin.embedding.embed_classname_whitelist results in the expected results:

And searching for admin.embedding.embed_classname_whitelist returns (an unexpected) zero results:

Although all of these results might include this topic after submitting this topic.

Discourse's internal search does not find the phrase «PagedownCustom», but Google does
(Jeff Atwood) #2

This is also a dupe, has been raised before. Has to do with “programmery” characters interfering with the way “words” are formed in the Postgres search indexes.

(Dean Taylor) #3

Could you kindly point me at the topic?

I can’t seem to find it.

(Gerhard Schlager) #4

(Jeff Atwood) #5

I searched for this

@sam stemmer order:latest

and got

(Dean Taylor) #6

Ahhh, magic word stemmer :slight_smile:

(Jeff Atwood) #7

This is probably worthy of a tag to keep search-index-related topics together, but I’m too lazy to set it up.

(Sam Saffron) closed #8

(Sam Saffron) #9

Fixed per: