yashi12
(Yashi Agarwal)
June 27, 2021, 3:04am
1
Can anyone please guide me with what kind of serach algorithm is used by Postman Community, for recommending similar question.
2 Likes
arlem
(Arlémi Turpault)
June 28, 2021, 1:29pm
2
Hey @yashi12 , we’re using the default search provided by Discourse, I’d recommend checking their docs if you’d like to know what is being used: https://www.discourse.org/
3 Likes
yashi12
(Yashi Agarwal)
June 29, 2021, 5:01am
3
Hi @arlem , Thanks for looking into it, but on Discourse they have just told albout what database and languages they use, and haven’t mentioned anything relatec to the serch system.
If u find any relevant link regarding the same, plz let me know.
arlem
(Arlémi Turpault)
June 29, 2021, 9:05am
4
@yashi12 I found that topic where they recommend to check the code source of the search directly to understand what happens under the hood:
# frozen_string_literal: true
class SearchController < ApplicationController
before_action :cancel_overloaded_search, only: [:query]
skip_before_action :check_xhr, only: :show
after_action :add_noindex_header
def self.valid_context_types
%w{user topic category private_messages tag}
end
def show
permitted_params = params.permit(:q, :page)
@search_term = permitted_params[:q]
# a q param has been given but it's not in the correct format
# eg: ?q[foo]=bar
if params[:q].present? && !@search_term.present?
raise Discourse::InvalidParameters.new(:q)
This file has been truncated. show original
Hope that helps!
2 Likes
yashi12
(Yashi Agarwal)
June 29, 2021, 9:22am
5
@arlem Thankyou, I will go through it.
yashi12
(Yashi Agarwal)
July 6, 2021, 10:59am
6
Is there any way to delete account from postman community. I could not find it, so if not present we can implement it.
So that if someone no longer wants to use the platform can delete his account.