Need help with understanding how discourse search works

Hi Team,

Wanted to know bit about how content gets priority in search.

So generally, the understanding is a Blog article gets searched via multiple keyword- tags related to the post.

E.g.
It can be keywords within the :
Question of the post , Topic title, Keywords within answer, Category tags for the question etc.

If my understanding is not complete…correct me.

Since our community is on Discourse platform, how does discourse implement search?
Are there different Discourse tags? different from tags that google uses to capture information?

What tags(Question of the post , Topic title, Keywords within answer, Category tags for the question ) would bring best search results for our community posts?

Please share your thoughts.

Thanks.

1 Like

Are you asking what Discourse does to allow the site to be searched by Google? If so, the best answer that I know of is in this post: Beginners guide to SEO with Discourse. There are additional details in the other posts in that topic.

One thing to note is that topic mentions the Discourse Sitemap plugin. As far as I know, search engines have no trouble indexing a Discourse site even when it doesn’t have a sitemap. The main thing to work on is creating quality content on your site that people want to read.

2 Likes

I think @Ranjan is asking how Discourse implements search in the Discourse application and is not asking about Google search.

He seems interested to understand how Discourse implements their internal search algorithm, and a good place to start is here in class SearchController:

Hey @Ranjan … you would be amazed at how much information can be found in the Discourse open source code on GitHub!

6 Likes