feat(backend): pgroongaに対応(configの構成変更あり) (#14978)
* feat(backend): pgroongaに対応(configの構成変更あり) * fix CHANGELOG.md * fix CHANGELOG.md * add using provider logging * fix CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
@@ -50,6 +50,9 @@ type Source = {
|
||||
redisForJobQueue?: RedisOptionsSource;
|
||||
redisForTimelines?: RedisOptionsSource;
|
||||
redisForReactions?: RedisOptionsSource;
|
||||
fulltextSearch?: {
|
||||
provider?: FulltextSearchProvider;
|
||||
};
|
||||
meilisearch?: {
|
||||
host: string;
|
||||
port: string;
|
||||
@@ -131,6 +134,9 @@ export type Config = {
|
||||
user: string;
|
||||
pass: string;
|
||||
}[] | undefined;
|
||||
fulltextSearch?: {
|
||||
provider?: FulltextSearchProvider;
|
||||
};
|
||||
meilisearch: {
|
||||
host: string;
|
||||
port: string;
|
||||
@@ -197,6 +203,8 @@ export type Config = {
|
||||
pidFile: string;
|
||||
};
|
||||
|
||||
export type FulltextSearchProvider = 'sqlLike' | 'sqlPgroonga' | 'meilisearch';
|
||||
|
||||
const _filename = fileURLToPath(import.meta.url);
|
||||
const _dirname = dirname(_filename);
|
||||
|
||||
@@ -265,6 +273,7 @@ export function loadConfig(): Config {
|
||||
db: { ...config.db, db: dbDb, user: dbUser, pass: dbPass },
|
||||
dbReplications: config.dbReplications,
|
||||
dbSlaves: config.dbSlaves,
|
||||
fulltextSearch: config.fulltextSearch,
|
||||
meilisearch: config.meilisearch,
|
||||
redis,
|
||||
redisForPubsub: config.redisForPubsub ? convertRedisOptions(config.redisForPubsub, host) : redis,
|
||||
|
Reference in New Issue
Block a user