Logo
Explore Help
Sign In
discourse/discourse-ai
1
0
Fork 0
You've already forked discourse-ai
mirror of https://github.com/discourse/discourse-ai.git synced 2025-07-09 15:43:28 +00:00
Code Issues Packages Projects Releases Wiki Activity
discourse-ai/assets/javascripts/initializers/ai-semantic-search.js

10 lines
276 B
JavaScript
Raw Normal View History

DEV: Mix semantic search results with normal results (#278)
2023-11-17 12:46:59 -08:00
import { apiInitializer } from "discourse/lib/api";
export default apiInitializer("1.15.0", (api) => {
api.modifyClass("component:search-result-entry", {
pluginId: "discourse-ai",
FIX: results not being reset when appending to query param (#912) This PR fixes an issue where the AI search results were not being reset when you append your search to an existing query param (typically when you've come from quick search). This is because `handleSearch()` doesn't get called in this situation. So here we explicitly check for query params, trigger a reset and search for those occasions.
2024-11-14 00:19:34 +09:00
classNameBindings: ["bulkSelectEnabled", "post.generatedByAi:ai-result"],
DEV: Mix semantic search results with normal results (#278)
2023-11-17 12:46:59 -08:00
});
});
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 76ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API